#874ED1#874ED1
#874ED1 is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.5% C 0.194 H 300.2°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).
Color values
| HEX | #874ED1 |
|---|---|
| RGB | rgb(135, 78, 209) |
| HSL | hsl(266, 59%, 56%) |
| HSV | hsv(266, 63%, 82%) |
| CMYK | cmyk(35.4%, 62.7%, 0%, 18%) |
| CIE-LAB | lab(45.91, 50.14, -59.00) |
| CIE-LCH | lch(45.91, 77.43, 310.36°) |
| OKLab | oklab(55.54% 0.0974 -0.1677) |
| OKLCH | oklch(55.54% 0.194 300.2) |
| XYZ | xyz(24.2219, 15.2029, 61.9676) |
| Luminance | 0.1520 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.66
Darkorchid
#9932CC
ΔE00 5.84
Light Indigo
#6D5ACF
ΔE00 5.88
Blueviolet
#8A2BE2
ΔE00 6.19
Lightish Purple
#A552E6
ΔE00 6.39
Slate Blue
#6A5ACD
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#874ED1 #98D14E
analogous
#4E57D1 #874ED1 #C94ED1
triadic
#874ED1 #D1874E #4ED187
tetradic
#874ED1 #D14E57 #98D14E #4ED1C9
square
#874ED1 #D14E57 #98D14E #4ED1C9
split-complementary
#874ED1 #D1C94E #57D14E
monochromatic
#4C2283 #682FB3 #874ED1 #A87FDE #C9AFEA
Accessibility & contrast
On white
5.20
#874ED1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.04
#874ED1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #874ED1
5.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##874ED1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##874ED1 | 1.00 | 5.20 | 4.04 | 5.20 |
| #FFFFFF | 5.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006CD5
Deuteranopia (green-blind)
#186CCE
Tritanopia (blue-blind)
#776B88
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #874ed1; /* rgb */ color: rgb(135, 78, 209); /* oklch */ color: oklch(55.5% 0.194 300.2);
Tailwind
colors: {
custom: {
50: '#af83e0',
500: '#874ed1',
950: '#000000',
},
}SCSS
$custom: #874ed1; $custom-light: #af83e0; $custom-dark: #000000;
JSON
{
"hex": "#874ed1",
"rgb": {
"r": 135,
"g": 78,
"b": 209
},
"hsl": {
"h": 266.107,
"s": 58.744,
"l": 56.275
},
"oklch": {
"l": 0.55536,
"c": 0.19393,
"h": 300.2
},
"luminance": 0.15203
}Semantic roles & 50–950 ramp
primary
#874ED1
secondary
#C1D8A2
accent
#E2469E
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83