#904DCF#904DCF
#904DCF is a mid, vivid violet. Relative luminance 0.157; OKLCH L 56.3% C 0.195 H 304.6°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).
Color values
| HEX | #904DCF |
|---|---|
| RGB | rgb(144, 77, 207) |
| HSL | hsl(271, 58%, 56%) |
| HSV | hsv(271, 63%, 81%) |
| CMYK | cmyk(30.4%, 62.8%, 0%, 18.8%) |
| CIE-LAB | lab(46.63, 52.15, -56.63) |
| CIE-LCH | lch(46.63, 76.98, 312.64°) |
| OKLab | oklab(56.25% 0.1106 -0.1604) |
| OKLCH | oklch(56.25% 0.195 304.6) |
| XYZ | xyz(25.4155, 15.7422, 60.7190) |
| Luminance | 0.1574 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 4.46
Darkorchid
#9932CC
ΔE00 5.01
Lightish Purple
#A552E6
ΔE00 5.31
Deep Lavender
#8D5EB7
ΔE00 6.01
Purply
#983FB2
ΔE00 6.17
Amethyst
#9B5FC0
ΔE00 6.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#904DCF #8CCF4D
analogous
#4F4DCF #904DCF #CF4DCD
triadic
#904DCF #CF904D #4DCF90
tetradic
#904DCF #CF4F4D #8CCF4D #4DCDCF
square
#904DCF #CF4F4D #8CCF4D #4DCDCF
split-complementary
#904DCF #CDCF4D #4DCF4F
monochromatic
#52227F #712FAF #904DCF #AE7DDC #CCADE9
Accessibility & contrast
On white
5.06
#904DCF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.15
#904DCF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #904DCF
5.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##904DCF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##904DCF | 1.00 | 5.06 | 4.15 | 5.06 |
| #FFFFFF | 5.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006DD3
Deuteranopia (green-blind)
#2B6FCC
Tritanopia (blue-blind)
#856887
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #904dcf; /* rgb */ color: rgb(144, 77, 207); /* oklch */ color: oklch(56.3% 0.195 304.6);
Tailwind
colors: {
custom: {
50: '#b582de',
500: '#904dcf',
950: '#000000',
},
}SCSS
$custom: #904dcf; $custom-light: #b582de; $custom-dark: #000000;
JSON
{
"hex": "#904dcf",
"rgb": {
"r": 144,
"g": 77,
"b": 207
},
"hsl": {
"h": 270.923,
"s": 57.522,
"l": 55.686
},
"oklch": {
"l": 0.5625,
"c": 0.19485,
"h": 304.6
},
"luminance": 0.15742
}Semantic roles & 50–950 ramp
primary
#904DCF
secondary
#BBD7A1
accent
#E14792
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#120B15
muted
#817C83