#904FC2#904FC2
#904FC2 is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.7% C 0.178 H 307.7°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).
Color values
| HEX | #904FC2 |
|---|---|
| RGB | rgb(144, 79, 194) |
| HSL | hsl(274, 49%, 54%) |
| HSV | hsv(274, 59%, 76%) |
| CMYK | cmyk(25.8%, 59.3%, 0%, 23.9%) |
| CIE-LAB | lab(46.20, 48.07, -49.83) |
| CIE-LCH | lch(46.20, 69.24, 313.97°) |
| OKLab | oklab(55.67% 0.1086 -0.1405) |
| OKLCH | oklch(55.67% 0.178 307.7) |
| XYZ | xyz(24.0332, 15.4166, 52.7381) |
| Luminance | 0.1542 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 4.54
Purply
#983FB2
ΔE00 4.81
Amethyst
#9B5FC0
ΔE00 5.23
Darkorchid
#9932CC
ΔE00 5.38
Royal Purple
#7851A9
ΔE00 5.75
Purpley
#8756E4
ΔE00 6.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#904FC2 #81C24F
analogous
#564FC2 #904FC2 #C24FBA
triadic
#904FC2 #C2904F #4FC290
tetradic
#904FC2 #C2564F #81C24F #4FBAC2
square
#904FC2 #C2564F #81C24F #4FBAC2
split-complementary
#904FC2 #BAC24F #4FC256
monochromatic
#502770 #71379D #904FC2 #AD7CD2 #C9AAE2
Accessibility & contrast
On white
5.14
#904FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.08
#904FC2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #904FC2
5.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##904FC2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##904FC2 | 1.00 | 5.14 | 4.08 | 5.14 |
| #FFFFFF | 5.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.08 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#206BC6
Deuteranopia (green-blind)
#3D6EBF
Tritanopia (blue-blind)
#886581
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #904fc2; /* rgb */ color: rgb(144, 79, 194); /* oklch */ color: oklch(55.7% 0.178 307.7);
Tailwind
colors: {
custom: {
50: '#b483d5',
500: '#904fc2',
950: '#000000',
},
}SCSS
$custom: #904fc2; $custom-light: #b483d5; $custom-dark: #000000;
JSON
{
"hex": "#904fc2",
"rgb": {
"r": 144,
"g": 79,
"b": 194
},
"hsl": {
"h": 273.913,
"s": 48.523,
"l": 53.529
},
"oklch": {
"l": 0.55674,
"c": 0.17752,
"h": 307.7
},
"luminance": 0.15416
}Semantic roles & 50–950 ramp
primary
#904FC2
secondary
#B3CF9E
accent
#D8508B
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83