#904CDF#904CDF
#904CDF is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.2% C 0.214 H 301.1°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).
Color values
| HEX | #904CDF |
|---|---|
| RGB | rgb(144, 76, 223) |
| HSL | hsl(268, 70%, 59%) |
| HSV | hsv(268, 66%, 87%) |
| CMYK | cmyk(35.4%, 65.9%, 0%, 12.5%) |
| CIE-LAB | lab(47.53, 56.48, -64.33) |
| CIE-LCH | lch(47.53, 85.60, 311.28°) |
| OKLab | oklab(57.24% 0.1103 -0.183) |
| OKLCH | oklch(57.24% 0.214 301.1) |
| XYZ | xyz(27.4021, 16.4257, 71.5246) |
| Luminance | 0.1643 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.90
Lightish Purple
#A552E6
ΔE00 4.51
Darkorchid
#9932CC
ΔE00 5.92
Blueviolet
#8A2BE2
ΔE00 6.05
Electric Purple
#AA23FF
ΔE00 6.09
Lighter Purple
#A55AF4
ΔE00 6.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#904CDF #9BDF4C
analogous
#4C51DF #904CDF #D94CDF
triadic
#904CDF #DF904C #4CDF90
tetradic
#904CDF #DF4C51 #9BDF4C #4CDFD9
square
#904CDF #DF4C51 #9BDF4C #4CDFD9
split-complementary
#904CDF #DFD94C #51DF4C
monochromatic
#541B96 #7124CA #904CDF #B080E8 #D0B4F2
Accessibility & contrast
On white
4.90
#904CDF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.29
#904CDF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #904CDF
4.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##904CDF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##904CDF | 1.00 | 4.90 | 4.29 | 4.90 |
| #FFFFFF | 4.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0070E3
Deuteranopia (green-blind)
#0070DC
Tritanopia (blue-blind)
#7F6D8F
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #904cdf; /* rgb */ color: rgb(144, 76, 223); /* oklch */ color: oklch(57.2% 0.214 301.1);
Tailwind
colors: {
custom: {
50: '#b682ea',
500: '#904cdf',
950: '#000000',
},
}SCSS
$custom: #904cdf; $custom-light: #b682ea; $custom-dark: #000000;
JSON
{
"hex": "#904cdf",
"rgb": {
"r": 144,
"g": 76,
"b": 223
},
"hsl": {
"h": 267.755,
"s": 69.668,
"l": 58.627
},
"oklch": {
"l": 0.57236,
"c": 0.21373,
"h": 301.1
},
"luminance": 0.16426
}Semantic roles & 50–950 ramp
primary
#904CDF
secondary
#C6E0A6
accent
#EC3B9B
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84