#904ED9#904ED9
#904ED9 is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.1% C 0.205 H 302.1°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).
Color values
| HEX | #904ED9 |
|---|---|
| RGB | rgb(144, 78, 217) |
| HSL | hsl(268, 65%, 58%) |
| HSV | hsv(268, 64%, 85%) |
| CMYK | cmyk(33.6%, 64.1%, 0%, 14.9%) |
| CIE-LAB | lab(47.48, 54.04, -60.99) |
| CIE-LCH | lch(47.48, 81.49, 311.54°) |
| OKLab | oklab(57.07% 0.1087 -0.1732) |
| OKLCH | oklch(57.07% 0.205 302.1) |
| XYZ | xyz(26.7474, 16.3878, 67.3862) |
| Luminance | 0.1639 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.13
Lightish Purple
#A552E6
ΔE00 4.51
Darkorchid
#9932CC
ΔE00 5.81
Blueviolet
#8A2BE2
ΔE00 6.46
Lighter Purple
#A55AF4
ΔE00 6.53
Electric Purple
#AA23FF
ΔE00 6.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#904ED9 #97D94E
analogous
#4E52D9 #904ED9 #D54ED9
triadic
#904ED9 #D9904E #4ED990
tetradic
#904ED9 #D94E52 #97D94E #4ED9D5
square
#904ED9 #D94E52 #97D94E #4ED9D5
split-complementary
#904ED9 #D9D54E #52D94E
monochromatic
#531F8E #7129C0 #904ED9 #B080E4 #CFB3EF
Accessibility & contrast
On white
4.91
#904ED9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.28
#904ED9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #904ED9
4.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##904ED9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##904ED9 | 1.00 | 4.91 | 4.28 | 4.91 |
| #FFFFFF | 4.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0070DD
Deuteranopia (green-blind)
#1970D6
Tritanopia (blue-blind)
#816D8D
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #904ed9; /* rgb */ color: rgb(144, 78, 217); /* oklch */ color: oklch(57.1% 0.205 302.1);
Tailwind
colors: {
custom: {
50: '#b583e6',
500: '#904ed9',
950: '#000000',
},
}SCSS
$custom: #904ed9; $custom-light: #b583e6; $custom-dark: #000000;
JSON
{
"hex": "#904ed9",
"rgb": {
"r": 144,
"g": 78,
"b": 217
},
"hsl": {
"h": 268.489,
"s": 64.651,
"l": 57.843
},
"oklch": {
"l": 0.57071,
"c": 0.20454,
"h": 302.1
},
"luminance": 0.16388
}Semantic roles & 50–950 ramp
primary
#904ED9
secondary
#C3DDA6
accent
#E84098
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#120B16
muted
#817C84