#904DCD#904DCD
#904DCD is a mid, vivid violet. Relative luminance 0.156; OKLCH L 56.1% C 0.193 H 305.1°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).
Color values
| HEX | #904DCD |
|---|---|
| RGB | rgb(144, 77, 205) |
| HSL | hsl(271, 56%, 55%) |
| HSV | hsv(271, 62%, 80%) |
| CMYK | cmyk(29.8%, 62.4%, 0%, 19.6%) |
| CIE-LAB | lab(46.51, 51.68, -55.69) |
| CIE-LCH | lch(46.51, 75.97, 312.86°) |
| OKLab | oklab(56.12% 0.1107 -0.1577) |
| OKLCH | oklch(56.12% 0.193 305.1) |
| XYZ | xyz(25.1725, 15.6450, 59.4394) |
| Luminance | 0.1565 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 4.73
Darkorchid
#9932CC
ΔE00 4.94
Lightish Purple
#A552E6
ΔE00 5.49
Deep Lavender
#8D5EB7
ΔE00 5.82
Purply
#983FB2
ΔE00 5.90
Amethyst
#9B5FC0
ΔE00 6.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#904DCD #8ACD4D
analogous
#504DCD #904DCD #CD4DCA
triadic
#904DCD #CD904D #4DCD90
tetradic
#904DCD #CD504D #8ACD4D #4DCACD
square
#904DCD #CD504D #8ACD4D #4DCACD
split-complementary
#904DCD #CACD4D #4DCD50
monochromatic
#52237D #7130AC #904DCD #AE7DDA #CCADE8
Accessibility & contrast
On white
5.09
#904DCD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.13
#904DCD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #904DCD
5.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##904DCD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##904DCD | 1.00 | 5.09 | 4.13 | 5.09 |
| #FFFFFF | 5.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006CD1
Deuteranopia (green-blind)
#2E6ECA
Tritanopia (blue-blind)
#856886
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #904dcd; /* rgb */ color: rgb(144, 77, 205); /* oklch */ color: oklch(56.1% 0.193 305.1);
Tailwind
colors: {
custom: {
50: '#b582dd',
500: '#904dcd',
950: '#000000',
},
}SCSS
$custom: #904dcd; $custom-light: #b582dd; $custom-dark: #000000;
JSON
{
"hex": "#904dcd",
"rgb": {
"r": 144,
"g": 77,
"b": 205
},
"hsl": {
"h": 271.406,
"s": 56.14,
"l": 55.294
},
"oklch": {
"l": 0.56116,
"c": 0.19264,
"h": 305.1
},
"luminance": 0.15645
}Semantic roles & 50–950 ramp
primary
#904DCD
secondary
#BAD6A0
accent
#DF4890
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#120B15
muted
#817C83