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.
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
| CSS keyword | darkorchid |
|---|---|
| HEX | #9932CC |
| RGB | rgb(153, 50, 204) |
| HSL | hsl(280, 61%, 50%) |
| HWB | hwb(280 20% 20%) |
| OKLCH | oklch(54.1% 0.227 311.5) |
| CMYK (naive, no ICC profile) | cmyk(25%, 75%, 0%, 20%) |
| Decimal | 10,040,012 |
| Hue family | Purples 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.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on darkorchid | 3.68:1 | Fail | Pass | Fail | Fail | 26.6 |
| White text on darkorchid | 5.70:1 | Pass | Pass | Fail | Pass | −82.7 |
| Darkorchid text on white | 5.70:1 | Pass | Pass | Fail | Pass | 77.4 |
| Darkorchid text on black | 3.68:1 | Fail | Pass | Fail | Fail | −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)
- 5%
#9e3ccf - 15%
#a851d4 - 25%
#b365d9 - 35%
#bd7ade - 45%
#c78ee3 - 55%
#d1a3e8 - 65%
#dbb7ed - 75%
#e6ccf2 - 85%
#f0e0f7 - 95%
#faf5fc
Shades (mixed with black)
- 5%
#9130c2 - 15%
#822bad - 25%
#732699 - 35%
#632185 - 45%
#541c70 - 55%
#45165c - 65%
#361247 - 75%
#260d33 - 85%
#17081f - 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.
| Harmony | Rotation | Color |
|---|---|---|
| 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
| Color | HEX | ΔE OK |
|---|---|---|
| darkviolet | #9400d3 | 4.3 |
| blueviolet | #8a2be2 | 4.9 |
| mediumorchid | #ba55d3 | 9.3 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| fuchsia-700 | #a800b7 | 6.2 |
| purple-700 | #8200db | 7.2 |
| purple-600 | #9810fa | 7.5 |
Code snippets
.element {
color: darkorchid;
background-color: #9932cc;
border-color: rgb(153 50 204);
outline-color: oklch(54.1% 0.227 311.5);
}<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 */import SwiftUI
extension Color {
static let darkorchid = Color(red: 0.600, green: 0.196, blue: 0.800)
}import androidx.compose.ui.graphics.Color
val Darkorchid = Color(0xFF9932CC)import 'package:flutter/material.dart';
const darkorchid = Color(0xFF9932CC);<!-- 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.