#874ED3#874ED3
#874ED3 is a mid, vivid violet. Relative luminance 0.153; OKLCH L 55.7% C 0.196 H 299.7°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).
Color values
| HEX | #874ED3 |
|---|---|
| RGB | rgb(135, 78, 211) |
| HSL | hsl(266, 60%, 57%) |
| HSV | hsv(266, 63%, 83%) |
| CMYK | cmyk(36%, 63%, 0%, 17.3%) |
| CIE-LAB | lab(46.05, 50.64, -59.93) |
| CIE-LCH | lch(46.05, 78.46, 310.20°) |
| OKLab | oklab(55.68% 0.0973 -0.1704) |
| OKLCH | oklch(55.68% 0.196 299.7) |
| XYZ | xyz(24.4710, 15.3026, 63.2798) |
| Luminance | 0.1530 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.41
Light Indigo
#6D5ACF
ΔE00 5.83
Darkorchid
#9932CC
ΔE00 5.94
Blueviolet
#8A2BE2
ΔE00 6.13
Lightish Purple
#A552E6
ΔE00 6.28
Bluish Purple
#703BE7
ΔE00 6.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#874ED3 #9AD34E
analogous
#4E58D3 #874ED3 #C94ED3
triadic
#874ED3 #D3874E #4ED387
tetradic
#874ED3 #D34E58 #9AD34E #4ED3C9
square
#874ED3 #D34E58 #9AD34E #4ED3C9
split-complementary
#874ED3 #D3C94E #58D34E
monochromatic
#4C2185 #682DB6 #874ED3 #A87FDF #C9B0EB
Accessibility & contrast
On white
5.17
#874ED3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.06
#874ED3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #874ED3
5.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##874ED3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##874ED3 | 1.00 | 5.17 | 4.06 | 5.17 |
| #FFFFFF | 5.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006DD7
Deuteranopia (green-blind)
#126CD0
Tritanopia (blue-blind)
#766B89
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #874ed3; /* rgb */ color: rgb(135, 78, 211); /* oklch */ color: oklch(55.7% 0.196 299.7);
Tailwind
colors: {
custom: {
50: '#af83e1',
500: '#874ed3',
950: '#000000',
},
}SCSS
$custom: #874ed3; $custom-light: #af83e1; $custom-dark: #000000;
JSON
{
"hex": "#874ed3",
"rgb": {
"r": 135,
"g": 78,
"b": 211
},
"hsl": {
"h": 265.714,
"s": 60.181,
"l": 56.667
},
"oklch": {
"l": 0.55676,
"c": 0.19622,
"h": 299.7
},
"luminance": 0.15303
}Semantic roles & 50–950 ramp
primary
#874ED3
secondary
#C2DAA3
accent
#E3449F
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83