Skip to content

CSS named color

DarkOrchid #9932CC

DarkOrchid (CSS keyword darkorchid) has the hex code #9932CC and the RGB value rgb(153, 50, 204): a medium-dark, vivid violet.

DarkOrchid#9932CC

A strong, medium-dark purple from the orchid family. It is more saturated than orchid and mediumorchid and is a common accent in purple-themed palettes.

Color codes for DarkOrchid

Color codes for DarkOrchid
CSS keyworddarkorchid
HEX#9932CC
RGBrgb(153, 50, 204)
HSLhsl(280, 61%, 50%)
HWBhwb(280 20% 20%)
OKLCHoklch(54.1% 0.227 311.5)
CMYK (naive, no ICC profile)cmyk(25%, 75%, 0%, 20%)
Decimal10,040,012
Hue familyPurples and violets

Contrast and accessibility

On darkorchid, white text has a contrast ratio of 5.70:1 and passes AA for normal text; black text reaches 3.68:1.

WCAG 2.2 contrast ratios (success criteria 1.4.3 and 1.4.6: AA needs 4.5:1 for normal text and 3:1 for large text, AAA needs 7:1 and 4.5:1). APCA Lc is the lightness contrast from the APCA-W3 0.0.98G model proposed for WCAG 3; a higher absolute value is more readable, and Lc 75 is its suggested minimum for body text.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on darkorchid3.68:1FailPassFailFail26.6
White text on darkorchid5.70:1PassPassFailPass−82.7
Darkorchid text on white5.70:1PassPassFailPass77.4
Darkorchid text on black3.68:1FailPassFailFail−24.3

Tints and shades

Each step mixes darkorchid with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, darkorchid, white 25%) in CSS.

Tints (mixed with white)

  1. 5%
    #9e3ccf
  2. 15%
    #a851d4
  3. 25%
    #b365d9
  4. 35%
    #bd7ade
  5. 45%
    #c78ee3
  6. 55%
    #d1a3e8
  7. 65%
    #dbb7ed
  8. 75%
    #e6ccf2
  9. 85%
    #f0e0f7
  10. 95%
    #faf5fc

Shades (mixed with black)

  1. 5%
    #9130c2
  2. 15%
    #822bad
  3. 25%
    #732699
  4. 35%
    #632185
  5. 45%
    #541c70
  6. 55%
    #45165c
  7. 65%
    #361247
  8. 75%
    #260d33
  9. 85%
    #17081f
  10. 95%
    #08030a

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, darkorchid's complementary color is #478100 (close to forestgreen), its analogous colors are #624DEC and #BD0F94, and its triadic partners are #9E5E00 and #00837F. For text on top, white gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#478100
Analogous−30°, +30°#624dec#bd0f94
Triadic+120°, +240°#9e5e00#00837f
Split-complementary+150°, +210°#807000#008753

Computed in OKLCH: the hue is rotated by 180° (complementary), ±30° (analogous), ±120° (triadic) and 180° ±30° (split-complementary) while lightness and chroma stay fixed. Results that fall outside sRGB are brought back with the CSS Color 4 gamut mapping algorithm. Because this uses OKLCH, the values differ from tools that rotate hue in HSL, but every color keeps the same perceived lightness.

Warm or cool?

DarkOrchid is a cool color: its hue is 280° on the HSL wheel, in the green, blue and violet range that is conventionally called cool.

Nearest named and Tailwind colors

Distance is ΔE OK, the Euclidean distance in OKLab multiplied by 100. Values under about 2 are hard to tell apart side by side.

Nearest CSS named colors

Nearest CSS named colors
ColorHEXΔE OK
darkviolet#9400d34.3
blueviolet#8a2be24.9
mediumorchid#ba55d39.3

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
fuchsia-700#a800b76.2
purple-700#8200db7.2
purple-600#9810fa7.5

Code snippets

CSS
.element {
  color: darkorchid;
  background-color: #9932cc;
  border-color: rgb(153 50 204);
  outline-color: oklch(54.1% 0.227 311.5);
}
Tailwind CSS
<div class="bg-[#9932cc] text-white">...</div>

/* or register it once in your CSS (Tailwind v4) */
@theme {
  --color-darkorchid: #9932cc;
}
/* then use bg-darkorchid, text-darkorchid, border-darkorchid */
SwiftUI
import SwiftUI

extension Color {
  static let darkorchid = Color(red: 0.600, green: 0.196, blue: 0.800)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

val Darkorchid = Color(0xFF9932CC)
Flutter
import 'package:flutter/material.dart';

const darkorchid = Color(0xFF9932CC);
Android XML
<!-- res/values/colors.xml -->
<color name="darkorchid">#9932CC</color>

Frequently asked questions

What is the hex code for darkorchid?
The hex code for darkorchid is #9932CC. The same color is rgb(153, 50, 204), hsl(280, 61%, 50%) and oklch(54.1% 0.227 311.5), and in CSS you can also write the keyword darkorchid directly.
Is darkorchid a warm or cool color?
DarkOrchid is a cool color: its hue is 280° on the HSL wheel, in the green, blue and violet range that is conventionally called cool.
What colors go with darkorchid?
Rotating the hue in OKLCH while keeping lightness and chroma, darkorchid's complementary color is #478100 (close to forestgreen), its analogous colors are #624DEC and #BD0F94, and its triadic partners are #9E5E00 and #00837F. For text on top, white gives the higher contrast.
Can you use white text on darkorchid?
White text on darkorchid has a contrast ratio of 5.70:1, which passes AA for normal text but not AAA under WCAG 2.2. Black text reaches 3.68:1 and passes AA only for large text (24 px, or 18.66 px bold, and up). In APCA terms that is Lc −82.7 for white and Lc 26.6 for black.
What is the RGB value of darkorchid?
DarkOrchid is rgb(153, 50, 204): red 153, green 50 and blue 204 on the 0 to 255 scale, or 60.0%, 19.6% and 80.0%. As a decimal integer it is 10040012.

Last reviewed by Arielton Oberek.