#874ED2#874ED2
#874ED2 is a mid, vivid violet. Relative luminance 0.153; OKLCH L 55.6% C 0.195 H 299.9°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).
Color values
| HEX | #874ED2 |
|---|---|
| RGB | rgb(135, 78, 210) |
| HSL | hsl(266, 59%, 56%) |
| HSV | hsv(266, 63%, 82%) |
| CMYK | cmyk(35.7%, 62.9%, 0%, 17.6%) |
| CIE-LAB | lab(45.98, 50.39, -59.46) |
| CIE-LCH | lch(45.98, 77.95, 310.28°) |
| OKLab | oklab(55.61% 0.0974 -0.169) |
| OKLCH | oklch(55.61% 0.195 299.9) |
| XYZ | xyz(24.3461, 15.2526, 62.6217) |
| Luminance | 0.1525 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.53
Light Indigo
#6D5ACF
ΔE00 5.85
Darkorchid
#9932CC
ΔE00 5.89
Blueviolet
#8A2BE2
ΔE00 6.15
Lightish Purple
#A552E6
ΔE00 6.33
Bluish Purple
#703BE7
ΔE00 6.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#874ED2 #99D24E
analogous
#4E57D2 #874ED2 #C94ED2
triadic
#874ED2 #D2874E #4ED287
tetradic
#874ED2 #D24E57 #99D24E #4ED2C9
square
#874ED2 #D24E57 #99D24E #4ED2C9
split-complementary
#874ED2 #D2C94E #57D24E
monochromatic
#4C2284 #682EB5 #874ED2 #A87FDE #C9B0EB
Accessibility & contrast
On white
5.18
#874ED2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.05
#874ED2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #874ED2
5.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##874ED2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##874ED2 | 1.00 | 5.18 | 4.05 | 5.18 |
| #FFFFFF | 5.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006DD6
Deuteranopia (green-blind)
#156CCF
Tritanopia (blue-blind)
#776B89
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #874ed2; /* rgb */ color: rgb(135, 78, 210); /* oklch */ color: oklch(55.6% 0.195 299.9);
Tailwind
colors: {
custom: {
50: '#af83e1',
500: '#874ed2',
950: '#000000',
},
}SCSS
$custom: #874ed2; $custom-light: #af83e1; $custom-dark: #000000;
JSON
{
"hex": "#874ed2",
"rgb": {
"r": 135,
"g": 78,
"b": 210
},
"hsl": {
"h": 265.909,
"s": 59.459,
"l": 56.471
},
"oklch": {
"l": 0.55606,
"c": 0.19507,
"h": 299.9
},
"luminance": 0.15253
}Semantic roles & 50–950 ramp
primary
#874ED2
secondary
#C2D9A3
accent
#E3459F
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83