#874CCC#874CCC
#874CCC is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.9% C 0.191 H 301.6°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).
Color values
| HEX | #874CCC |
|---|---|
| RGB | rgb(135, 76, 204) |
| HSL | hsl(268, 56%, 55%) |
| HSV | hsv(268, 63%, 80%) |
| CMYK | cmyk(33.8%, 62.7%, 0%, 20%) |
| CIE-LAB | lab(45.19, 49.94, -57.28) |
| CIE-LCH | lch(45.19, 76.00, 311.08°) |
| OKLab | oklab(54.91% 0.1001 -0.1626) |
| OKLCH | oklch(54.91% 0.191 301.6) |
| XYZ | xyz(23.4726, 14.6793, 58.7118) |
| Luminance | 0.1468 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 4.61
Darkorchid
#9932CC
ΔE00 5.25
Blueviolet
#8A2BE2
ΔE00 5.98
Royal Purple
#7851A9
ΔE00 6.12
Light Indigo
#6D5ACF
ΔE00 6.35
Deep Lavender
#8D5EB7
ΔE00 6.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#874CCC #91CC4C
analogous
#4C51CC #874CCC #C74CCC
triadic
#874CCC #CC874C #4CCC87
tetradic
#874CCC #CC4C51 #91CC4C #4CCCC7
square
#874CCC #CC4C51 #91CC4C #4CCCC7
split-complementary
#874CCC #CCC74C #51CC4C
monochromatic
#4B237B #6931AA #874CCC #A77CDA #C7ABE7
Accessibility & contrast
On white
5.34
#874CCC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.94
#874CCC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #874CCC
5.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##874CCC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##874CCC | 1.00 | 5.34 | 3.94 | 5.34 |
| #FFFFFF | 5.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006AD0
Deuteranopia (green-blind)
#1F6AC9
Tritanopia (blue-blind)
#796885
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #874ccc; /* rgb */ color: rgb(135, 76, 204); /* oklch */ color: oklch(54.9% 0.191 301.6);
Tailwind
colors: {
custom: {
50: '#af81dc',
500: '#874ccc',
950: '#000000',
},
}SCSS
$custom: #874ccc; $custom-light: #af81dc; $custom-dark: #000000;
JSON
{
"hex": "#874ccc",
"rgb": {
"r": 135,
"g": 76,
"b": 204
},
"hsl": {
"h": 267.656,
"s": 55.652,
"l": 54.902
},
"oklch": {
"l": 0.54908,
"c": 0.19094,
"h": 301.6
},
"luminance": 0.14679
}Semantic roles & 50–950 ramp
primary
#874CCC
secondary
#BCD59F
accent
#DF499A
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83