#9D51DC#9D51DC
#9D51DC is a mid, highly saturated violet. Relative luminance 0.182; OKLCH L 59.1% C 0.207 H 306.2°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).
Color values
| HEX | #9D51DC |
|---|---|
| RGB | rgb(157, 81, 220) |
| HSL | hsl(273, 67%, 59%) |
| HSV | hsv(273, 63%, 86%) |
| CMYK | cmyk(28.6%, 63.2%, 0%, 13.7%) |
| CIE-LAB | lab(49.76, 56.07, -58.94) |
| CIE-LCH | lch(49.76, 81.35, 313.57°) |
| OKLab | oklab(59.12% 0.1221 -0.1668) |
| OKLCH | oklch(59.12% 0.207 306.2) |
| XYZ | xyz(29.7626, 18.2205, 69.6453) |
| Luminance | 0.1822 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 2.02
Purpley
#8756E4
ΔE00 4.45
Lighter Purple
#A55AF4
ΔE00 4.54
Amethyst
#9B5FC0
ΔE00 5.64
Mediumorchid
#BA55D3
ΔE00 6.52
Electric Purple
#AA23FF
ΔE00 6.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9D51DC #90DC51
analogous
#5851DC #9D51DC #DC51D5
triadic
#9D51DC #DC9D51 #51DC9D
tetradic
#9D51DC #DC5851 #90DC51 #51D5DC
square
#9D51DC #DC5851 #90DC51 #51D5DC
split-complementary
#9D51DC #D5DC51 #51DC58
monochromatic
#5F1E95 #7F28C8 #9D51DC #BA84E6 #D6B7F0
Accessibility & contrast
On white
4.52
#9D51DC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.64
#9D51DC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9D51DC
4.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9D51DC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9D51DC | 1.00 | 4.52 | 4.64 | 4.64 |
| #FFFFFF | 4.52 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.64 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.64 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0074E0
Deuteranopia (green-blind)
#3277D9
Tritanopia (blue-blind)
#926E8F
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #9d51dc; /* rgb */ color: rgb(157, 81, 220); /* oklch */ color: oklch(59.1% 0.207 306.2);
Tailwind
colors: {
custom: {
50: '#be86e8',
500: '#9d51dc',
950: '#000000',
},
}SCSS
$custom: #9d51dc; $custom-light: #be86e8; $custom-dark: #000000;
JSON
{
"hex": "#9d51dc",
"rgb": {
"r": 157,
"g": 81,
"b": 220
},
"hsl": {
"h": 272.806,
"s": 66.507,
"l": 59.02
},
"oklch": {
"l": 0.59122,
"c": 0.20672,
"h": 306.2
},
"luminance": 0.1822
}Semantic roles & 50–950 ramp
primary
#9D51DC
secondary
#C2E0A9
accent
#E93E8C
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130B16
muted
#827C84