#874DC7#874DC7
#874DC7 is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.7% C 0.184 H 302.6°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).
Color values
| HEX | #874DC7 |
|---|---|
| RGB | rgb(135, 77, 199) |
| HSL | hsl(269, 52%, 54%) |
| HSV | hsv(269, 61%, 78%) |
| CMYK | cmyk(32.2%, 61.3%, 0%, 22%) |
| CIE-LAB | lab(45.06, 48.19, -54.61) |
| CIE-LCH | lch(45.06, 72.83, 311.42°) |
| OKLab | oklab(54.71% 0.0991 -0.1548) |
| OKLCH | oklch(54.71% 0.184 302.6) |
| XYZ | xyz(22.9520, 14.5822, 55.6272) |
| Luminance | 0.1458 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 5.15
Darkorchid
#9932CC
ΔE00 5.35
Royal Purple
#7851A9
ΔE00 5.44
Deep Lavender
#8D5EB7
ΔE00 5.91
Purply
#983FB2
ΔE00 6.08
Blueviolet
#8A2BE2
ΔE00 6.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#874DC7 #8DC74D
analogous
#4D50C7 #874DC7 #C44DC7
triadic
#874DC7 #C7874D #4DC787
tetradic
#874DC7 #C74D50 #8DC74D #4DC7C4
square
#874DC7 #C74D50 #8DC74D #4DC7C4
split-complementary
#874DC7 #C7C44D #50C74D
monochromatic
#4B2575 #6933A3 #874DC7 #A67CD6 #C6AAE4
Accessibility & contrast
On white
5.36
#874DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.92
#874DC7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #874DC7
5.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##874DC7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##874DC7 | 1.00 | 5.36 | 3.92 | 5.36 |
| #FFFFFF | 5.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006ACB
Deuteranopia (green-blind)
#2A6AC4
Tritanopia (blue-blind)
#7B6783
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #874dc7; /* rgb */ color: rgb(135, 77, 199); /* oklch */ color: oklch(54.7% 0.184 302.6);
Tailwind
colors: {
custom: {
50: '#ae82d9',
500: '#874dc7',
950: '#000000',
},
}SCSS
$custom: #874dc7; $custom-light: #ae82d9; $custom-dark: #000000;
JSON
{
"hex": "#874dc7",
"rgb": {
"r": 135,
"g": 77,
"b": 199
},
"hsl": {
"h": 268.525,
"s": 52.137,
"l": 54.118
},
"oklch": {
"l": 0.54705,
"c": 0.18382,
"h": 302.6
},
"luminance": 0.14582
}Semantic roles & 50–950 ramp
primary
#874DC7
secondary
#B9D29E
accent
#DC4C97
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B15
muted
#807C83