#904FE4#904FE4
#904FE4 is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 58.0% C 0.215 H 299.7°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).
Color values
| HEX | #904FE4 |
|---|---|
| RGB | rgb(144, 79, 228) |
| HSL | hsl(266, 73%, 60%) |
| HSV | hsv(266, 65%, 89%) |
| CMYK | cmyk(36.8%, 65.4%, 0%, 10.6%) |
| CIE-LAB | lab(48.41, 56.22, -65.73) |
| CIE-LCH | lch(48.41, 86.49, 310.54°) |
| OKLab | oklab(57.98% 0.1066 -0.1872) |
| OKLCH | oklch(57.98% 0.215 299.7) |
| XYZ | xyz(28.2977, 17.1224, 75.1978) |
| Luminance | 0.1712 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.14
Lightish Purple
#A552E6
ΔE00 4.11
Lighter Purple
#A55AF4
ΔE00 5.52
Electric Purple
#AA23FF
ΔE00 6.21
Blueviolet
#8A2BE2
ΔE00 6.84
Darkorchid
#9932CC
ΔE00 6.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#904FE4 #A3E44F
analogous
#4F59E4 #904FE4 #DA4FE4
triadic
#904FE4 #E4904F #4FE490
tetradic
#904FE4 #E44F59 #A3E44F #4FE4DA
square
#904FE4 #E44F59 #A3E44F #4FE4DA
split-complementary
#904FE4 #E4DA4F #59E44F
monochromatic
#5419A0 #6F21D5 #904FE4 #B184EC #D3B9F4
Accessibility & contrast
On white
4.75
#904FE4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.42
#904FE4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #904FE4
4.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##904FE4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##904FE4 | 1.00 | 4.75 | 4.42 | 4.75 |
| #FFFFFF | 4.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0073E9
Deuteranopia (green-blind)
#0072E1
Tritanopia (blue-blind)
#7D7193
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #904fe4; /* rgb */ color: rgb(144, 79, 228); /* oklch */ color: oklch(58.0% 0.215 299.7);
Tailwind
colors: {
custom: {
50: '#b684ed',
500: '#904fe4',
950: '#000000',
},
}SCSS
$custom: #904fe4; $custom-light: #b684ed; $custom-dark: #000000;
JSON
{
"hex": "#904fe4",
"rgb": {
"r": 144,
"g": 79,
"b": 228
},
"hsl": {
"h": 266.174,
"s": 73.399,
"l": 60.196
},
"oklch": {
"l": 0.57983,
"c": 0.21539,
"h": 299.7
},
"luminance": 0.17123
}Semantic roles & 50–950 ramp
primary
#904FE4
secondary
#CBE4AB
accent
#D6107F
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84