#904DC7#904DC7
#904DC7 is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.7% C 0.186 H 306.6°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).
Color values
| HEX | #904DC7 |
|---|---|
| RGB | rgb(144, 77, 199) |
| HSL | hsl(273, 52%, 54%) |
| HSV | hsv(273, 61%, 78%) |
| CMYK | cmyk(27.6%, 61.3%, 0%, 22%) |
| CIE-LAB | lab(46.12, 50.27, -52.84) |
| CIE-LCH | lch(46.12, 72.93, 313.57°) |
| OKLab | oklab(55.72% 0.1109 -0.1493) |
| OKLCH | oklch(55.72% 0.186 306.6) |
| XYZ | xyz(24.4621, 15.3608, 55.6980) |
| Luminance | 0.1536 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 4.84
Purply
#983FB2
ΔE00 5.12
Deep Lavender
#8D5EB7
ΔE00 5.32
Purpley
#8756E4
ΔE00 5.58
Amethyst
#9B5FC0
ΔE00 5.84
Lightish Purple
#A552E6
ΔE00 6.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#904DC7 #84C74D
analogous
#534DC7 #904DC7 #C74DC1
triadic
#904DC7 #C7904D #4DC790
tetradic
#904DC7 #C7534D #84C74D #4DC1C7
square
#904DC7 #C7534D #84C74D #4DC1C7
split-complementary
#904DC7 #C1C74D #4DC753
monochromatic
#512575 #7133A3 #904DC7 #AD7CD6 #CAAAE4
Accessibility & contrast
On white
5.16
#904DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.07
#904DC7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #904DC7
5.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##904DC7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##904DC7 | 1.00 | 5.16 | 4.07 | 5.16 |
| #FFFFFF | 5.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0C6BCB
Deuteranopia (green-blind)
#356EC4
Tritanopia (blue-blind)
#876683
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #904dc7; /* rgb */ color: rgb(144, 77, 199); /* oklch */ color: oklch(55.7% 0.186 306.6);
Tailwind
colors: {
custom: {
50: '#b482d9',
500: '#904dc7',
950: '#000000',
},
}SCSS
$custom: #904dc7; $custom-light: #b482d9; $custom-dark: #000000;
JSON
{
"hex": "#904dc7",
"rgb": {
"r": 144,
"g": 77,
"b": 199
},
"hsl": {
"h": 272.951,
"s": 52.137,
"l": 54.118
},
"oklch": {
"l": 0.55718,
"c": 0.18601,
"h": 306.6
},
"luminance": 0.15361
}Semantic roles & 50–950 ramp
primary
#904DC7
secondary
#B5D29E
accent
#DC4C8D
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B15
muted
#807C83