#904FC7#904FC7
#904FC7 is a mid, vivid violet. Relative luminance 0.156; OKLCH L 56.0% C 0.183 H 306.3°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).
Color values
| HEX | #904FC7 |
|---|---|
| RGB | rgb(144, 79, 199) |
| HSL | hsl(273, 52%, 55%) |
| HSV | hsv(273, 60%, 78%) |
| CMYK | cmyk(27.6%, 60.3%, 0%, 22%) |
| CIE-LAB | lab(46.51, 49.24, -52.23) |
| CIE-LCH | lch(46.51, 71.78, 313.31°) |
| OKLab | oklab(56% 0.1085 -0.1475) |
| OKLCH | oklch(56% 0.183 306.3) |
| XYZ | xyz(24.6042, 15.6450, 55.7454) |
| Luminance | 0.1565 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 4.92
Darkorchid
#9932CC
ΔE00 5.30
Purply
#983FB2
ΔE00 5.40
Purpley
#8756E4
ΔE00 5.41
Amethyst
#9B5FC0
ΔE00 5.44
Lightish Purple
#A552E6
ΔE00 5.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#904FC7 #86C74F
analogous
#544FC7 #904FC7 #C74FC2
triadic
#904FC7 #C7904F #4FC790
tetradic
#904FC7 #C7544F #86C74F #4FC2C7
square
#904FC7 #C7544F #86C74F #4FC2C7
split-complementary
#904FC7 #C2C74F #4FC754
monochromatic
#512676 #7134A4 #904FC7 #AD7DD6 #CBACE5
Accessibility & contrast
On white
5.09
#904FC7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.13
#904FC7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #904FC7
5.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##904FC7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##904FC7 | 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)
#166CCB
Deuteranopia (green-blind)
#386FC4
Tritanopia (blue-blind)
#876784
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #904fc7; /* rgb */ color: rgb(144, 79, 199); /* oklch */ color: oklch(56.0% 0.183 306.3);
Tailwind
colors: {
custom: {
50: '#b483d9',
500: '#904fc7',
950: '#000000',
},
}SCSS
$custom: #904fc7; $custom-light: #b483d9; $custom-dark: #000000;
JSON
{
"hex": "#904fc7",
"rgb": {
"r": 144,
"g": 79,
"b": 199
},
"hsl": {
"h": 272.5,
"s": 51.724,
"l": 54.51
},
"oklch": {
"l": 0.55995,
"c": 0.18312,
"h": 306.3
},
"luminance": 0.15645
}Semantic roles & 50–950 ramp
primary
#904FC7
secondary
#B7D2A0
accent
#DB4D8E
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B15
muted
#807C83