#874FC8#874FC8
#874FC8 is a mid, vivid violet. Relative luminance 0.149; OKLCH L 55.1% C 0.182 H 302.1°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).
Color values
| HEX | #874FC8 |
|---|---|
| RGB | rgb(135, 79, 200) |
| HSL | hsl(268, 52%, 55%) |
| HSV | hsv(268, 61%, 78%) |
| CMYK | cmyk(32.5%, 60.5%, 0%, 21.6%) |
| CIE-LAB | lab(45.51, 47.38, -54.46) |
| CIE-LCH | lch(45.51, 72.18, 311.02°) |
| OKLab | oklab(55.06% 0.0967 -0.1543) |
| OKLCH | oklch(55.06% 0.182 302.1) |
| XYZ | xyz(23.2106, 14.9129, 56.2881) |
| Luminance | 0.1491 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 4.77
Royal Purple
#7851A9
ΔE00 5.51
Deep Lavender
#8D5EB7
ΔE00 5.61
Darkorchid
#9932CC
ΔE00 5.78
Light Indigo
#6D5ACF
ΔE00 6.22
Purply
#983FB2
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#874FC8 #90C84F
analogous
#4F53C8 #874FC8 #C44FC8
triadic
#874FC8 #C8874F #4FC887
tetradic
#874FC8 #C84F53 #90C84F #4FC8C4
square
#874FC8 #C84F53 #90C84F #4FC8C4
split-complementary
#874FC8 #C8C44F #53C84F
monochromatic
#4B2577 #6934A6 #874FC8 #A77ED7 #C7ACE5
Accessibility & contrast
On white
5.27
#874FC8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.98
#874FC8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #874FC8
5.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##874FC8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##874FC8 | 1.00 | 5.27 | 3.98 | 5.27 |
| #FFFFFF | 5.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#036BCC
Deuteranopia (green-blind)
#2B6BC5
Tritanopia (blue-blind)
#7A6884
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #874fc8; /* rgb */ color: rgb(135, 79, 200); /* oklch */ color: oklch(55.1% 0.182 302.1);
Tailwind
colors: {
custom: {
50: '#ae83d9',
500: '#874fc8',
950: '#000000',
},
}SCSS
$custom: #874fc8; $custom-light: #ae83d9; $custom-dark: #000000;
JSON
{
"hex": "#874fc8",
"rgb": {
"r": 135,
"g": 79,
"b": 200
},
"hsl": {
"h": 267.769,
"s": 52.381,
"l": 54.706
},
"oklch": {
"l": 0.55059,
"c": 0.18212,
"h": 302.1
},
"luminance": 0.14913
}Semantic roles & 50–950 ramp
primary
#874FC8
secondary
#BBD3A0
accent
#DC4C99
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83