#874BB5#874BB5
#874BB5 is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.2% C 0.166 H 307.8°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).
Color values
| HEX | #874BB5 |
|---|---|
| RGB | rgb(135, 75, 181) |
| HSL | hsl(274, 42%, 50%) |
| HSV | hsv(274, 59%, 71%) |
| CMYK | cmyk(25.4%, 58.6%, 0%, 29%) |
| CIE-LAB | lab(43.54, 44.91, -46.57) |
| CIE-LCH | lch(43.54, 64.70, 313.96°) |
| OKLab | oklab(53.24% 0.1019 -0.1312) |
| OKLCH | oklch(53.24% 0.166 307.8) |
| XYZ | xyz(20.8466, 13.5195, 45.2184) |
| Luminance | 0.1352 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 3.74
Purply
#983FB2
ΔE00 4.14
Deep Lavender
#8D5EB7
ΔE00 5.49
Darkorchid
#9932CC
ΔE00 5.67
Medium Purple
#9E43A2
ΔE00 6.93
Amethyst
#9B5FC0
ΔE00 7.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#874BB5 #79B54B
analogous
#524BB5 #874BB5 #B54BAE
triadic
#874BB5 #B5874B #4BB587
tetradic
#874BB5 #B5524B #79B54B #4BAEB5
square
#874BB5 #B5524B #79B54B #4BAEB5
split-complementary
#874BB5 #AEB54B #4BB552
monochromatic
#46275F #67398A #874BB5 #A476C7 #C1A2D9
Accessibility & contrast
On white
5.67
#874BB5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.70
#874BB5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #874BB5
5.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##874BB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##874BB5 | 1.00 | 5.67 | 3.70 | 5.67 |
| #FFFFFF | 5.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2265B8
Deuteranopia (green-blind)
#3B68B2
Tritanopia (blue-blind)
#805F79
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #874bb5; /* rgb */ color: rgb(135, 75, 181); /* oklch */ color: oklch(53.2% 0.166 307.8);
Tailwind
colors: {
custom: {
50: '#ad80cc',
500: '#874bb5',
950: '#000000',
},
}SCSS
$custom: #874bb5; $custom-light: #ad80cc; $custom-dark: #000000;
JSON
{
"hex": "#874bb5",
"rgb": {
"r": 135,
"g": 75,
"b": 181
},
"hsl": {
"h": 273.962,
"s": 41.732,
"l": 50.196
},
"oklch": {
"l": 0.53236,
"c": 0.16611,
"h": 307.8
},
"luminance": 0.13519
}Semantic roles & 50–950 ramp
primary
#874BB5
secondary
#ABC696
accent
#D2568C
background
#FAF7FC
surface
#F5EEF9
border
#CFC9D2
text
#110A13
muted
#807C82