#874BB2#874BB2
#874BB2 is a mid, vivid violet. Relative luminance 0.134; OKLCH L 53.0% C 0.163 H 308.8°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).
Color values
| HEX | #874BB2 |
|---|---|
| RGB | rgb(135, 75, 178) |
| HSL | hsl(275, 41%, 50%) |
| HSV | hsv(275, 58%, 70%) |
| CMYK | cmyk(24.2%, 57.9%, 0%, 30.2%) |
| CIE-LAB | lab(43.36, 44.21, -45.09) |
| CIE-LCH | lch(43.36, 63.15, 314.43°) |
| OKLab | oklab(53.05% 0.1019 -0.1268) |
| OKLCH | oklch(53.05% 0.163 308.8) |
| XYZ | xyz(20.5420, 13.3977, 43.6147) |
| Luminance | 0.1340 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 3.61
Purply
#983FB2
ΔE00 3.98
Deep Lavender
#8D5EB7
ΔE00 5.49
Darkorchid
#9932CC
ΔE00 5.94
Medium Purple
#9E43A2
ΔE00 6.56
Amethyst
#9B5FC0
ΔE00 7.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#874BB2 #76B24B
analogous
#534BB2 #874BB2 #B24BAA
triadic
#874BB2 #B2874B #4BB287
tetradic
#874BB2 #B2534B #76B24B #4BAAB2
square
#874BB2 #B2534B #76B24B #4BAAB2
split-complementary
#874BB2 #AAB24B #4BB253
monochromatic
#46275C #663987 #874BB2 #A475C5 #C0A0D7
Accessibility & contrast
On white
5.71
#874BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.68
#874BB2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #874BB2
5.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##874BB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##874BB2 | 1.00 | 5.71 | 3.68 | 5.71 |
| #FFFFFF | 5.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2664B5
Deuteranopia (green-blind)
#3E67B0
Tritanopia (blue-blind)
#815E77
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #874bb2; /* rgb */ color: rgb(135, 75, 178); /* oklch */ color: oklch(53.0% 0.163 308.8);
Tailwind
colors: {
custom: {
50: '#ad80c9',
500: '#874bb2',
950: '#000000',
},
}SCSS
$custom: #874bb2; $custom-light: #ad80c9; $custom-dark: #000000;
JSON
{
"hex": "#874bb2",
"rgb": {
"r": 135,
"g": 75,
"b": 178
},
"hsl": {
"h": 274.951,
"s": 40.711,
"l": 49.608
},
"oklch": {
"l": 0.53047,
"c": 0.16268,
"h": 308.8
},
"luminance": 0.13397
}Semantic roles & 50–950 ramp
primary
#874BB2
secondary
#A9C495
accent
#D1578A
background
#FAF7FC
surface
#F5EEF8
border
#CFC9D1
text
#100A13
muted
#7F7C82