#874DC5#874DC5
#874DC5 is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.6% C 0.182 H 303.1°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).
Color values
| HEX | #874DC5 |
|---|---|
| RGB | rgb(135, 77, 197) |
| HSL | hsl(269, 51%, 54%) |
| HSV | hsv(269, 61%, 77%) |
| CMYK | cmyk(31.5%, 60.9%, 0%, 22.7%) |
| CIE-LAB | lab(44.93, 47.70, -53.66) |
| CIE-LCH | lch(44.93, 71.80, 311.63°) |
| OKLab | oklab(54.57% 0.0992 -0.152) |
| OKLCH | oklch(54.57% 0.182 303.1) |
| XYZ | xyz(22.7213, 14.4899, 54.4123) |
| Luminance | 0.1449 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 5.18
Darkorchid
#9932CC
ΔE00 5.35
Purpley
#8756E4
ΔE00 5.44
Deep Lavender
#8D5EB7
ΔE00 5.75
Purply
#983FB2
ΔE00 5.86
Light Indigo
#6D5ACF
ΔE00 6.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#874DC5 #8BC54D
analogous
#4D4FC5 #874DC5 #C34DC5
triadic
#874DC5 #C5874D #4DC587
tetradic
#874DC5 #C54D4F #8BC54D #4DC5C3
square
#874DC5 #C54D4F #8BC54D #4DC5C3
split-complementary
#874DC5 #C5C34D #4FC54D
monochromatic
#4B2572 #6934A0 #874DC5 #A67BD4 #C5A9E3
Accessibility & contrast
On white
5.39
#874DC5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.90
#874DC5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #874DC5
5.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##874DC5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##874DC5 | 1.00 | 5.39 | 3.90 | 5.39 |
| #FFFFFF | 5.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0269C9
Deuteranopia (green-blind)
#2C6AC2
Tritanopia (blue-blind)
#7B6682
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #874dc5; /* rgb */ color: rgb(135, 77, 197); /* oklch */ color: oklch(54.6% 0.182 303.1);
Tailwind
colors: {
custom: {
50: '#ae82d7',
500: '#874dc5',
950: '#000000',
},
}SCSS
$custom: #874dc5; $custom-light: #ae82d7; $custom-dark: #000000;
JSON
{
"hex": "#874dc5",
"rgb": {
"r": 135,
"g": 77,
"b": 197
},
"hsl": {
"h": 269,
"s": 50.847,
"l": 53.725
},
"oklch": {
"l": 0.5457,
"c": 0.18151,
"h": 303.1
},
"luminance": 0.1449
}Semantic roles & 50–950 ramp
primary
#874DC5
secondary
#B8D19D
accent
#DA4D96
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83