#874CC2#874CC2
#874CC2 is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.2% C 0.180 H 304.1°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).
Color values
| HEX | #874CC2 |
|---|---|
| RGB | rgb(135, 76, 194) |
| HSL | hsl(270, 49%, 53%) |
| HSV | hsv(270, 61%, 76%) |
| CMYK | cmyk(30.4%, 60.8%, 0%, 23.9%) |
| CIE-LAB | lab(44.54, 47.49, -52.55) |
| CIE-LCH | lch(44.54, 70.83, 312.11°) |
| OKLab | oklab(54.23% 0.1005 -0.1487) |
| OKLCH | oklch(54.23% 0.18 304.1) |
| XYZ | xyz(22.3115, 14.2149, 52.5968) |
| Luminance | 0.1421 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.87
Darkorchid
#9932CC
ΔE00 5.18
Purply
#983FB2
ΔE00 5.42
Deep Lavender
#8D5EB7
ΔE00 5.75
Purpley
#8756E4
ΔE00 6.00
Blueviolet
#8A2BE2
ΔE00 6.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#874CC2 #87C24C
analogous
#4C4CC2 #874CC2 #C24CC2
triadic
#874CC2 #C2874C #4CC287
tetradic
#874CC2 #C24C4C #87C24C #4CC2C2
square
#874CC2 #C24C4C #87C24C #4CC2C2
split-complementary
#874CC2 #C2C24C #4CC24C
monochromatic
#4A266E #68359C #874CC2 #A67AD2 #C4A7E1
Accessibility & contrast
On white
5.46
#874CC2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.84
#874CC2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #874CC2
5.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##874CC2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##874CC2 | 1.00 | 5.46 | 3.84 | 5.46 |
| #FFFFFF | 5.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0868C6
Deuteranopia (green-blind)
#2F69BF
Tritanopia (blue-blind)
#7C6480
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #874cc2; /* rgb */ color: rgb(135, 76, 194); /* oklch */ color: oklch(54.2% 0.180 304.1);
Tailwind
colors: {
custom: {
50: '#ae81d5',
500: '#874cc2',
950: '#000000',
},
}SCSS
$custom: #874cc2; $custom-light: #ae81d5; $custom-dark: #000000;
JSON
{
"hex": "#874cc2",
"rgb": {
"r": 135,
"g": 76,
"b": 194
},
"hsl": {
"h": 270,
"s": 49.167,
"l": 52.941
},
"oklch": {
"l": 0.54227,
"c": 0.17951,
"h": 304.1
},
"luminance": 0.14215
}Semantic roles & 50–950 ramp
primary
#874CC2
secondary
#B5CE9B
accent
#D94F94
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110A14
muted
#807C83