#9874C8#9874C8
#9874C8 is a light, vivid violet. Relative luminance 0.233; OKLCH L 62.8% C 0.128 H 302.6°. Best body text is #000000 at 5.67:1 contrast (WCAG AA passes).
Color values
| HEX | #9874C8 |
|---|---|
| RGB | rgb(152, 116, 200) |
| HSL | hsl(266, 43%, 62%) |
| HSV | hsv(266, 42%, 78%) |
| CMYK | cmyk(24%, 42%, 0%, 21.6%) |
| CIE-LAB | lab(55.42, 31.15, -38.60) |
| CIE-LCH | lch(55.42, 49.60, 308.90°) |
| OKLab | oklab(62.82% 0.069 -0.1076) |
| OKLCH | oklch(62.82% 0.128 302.6) |
| XYZ | xyz(29.6174, 23.3363, 57.5764) |
| Luminance | 0.2334 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lilac
#966EBD
ΔE00 2.59
Mediumpurple
#9370DB
ΔE00 4.23
Wisteria
#A87DC2
ΔE00 5.28
Soft Purple
#A66FB5
ΔE00 6.15
Amethyst
#9B5FC0
ΔE00 6.38
Deep Lavender
#8D5EB7
ΔE00 7.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9874C8 #A4C874
analogous
#747AC8 #9874C8 #C274C8
triadic
#9874C8 #C89874 #74C898
tetradic
#9874C8 #C8747A #A4C874 #74C8C2
square
#9874C8 #C8747A #A4C874 #74C8C2
split-complementary
#9874C8 #C8C274 #7AC874
monochromatic
#5B378B #7848B7 #9874C8 #B8A0D9 #D9CCEB
Accessibility & contrast
On white
3.71
#9874C8 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.67
#9874C8 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9874C8
5.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9874C8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9874C8 | 1.00 | 3.71 | 5.67 | 5.67 |
| #FFFFFF | 3.71 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.67 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.67 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5F84CB
Deuteranopia (green-blind)
#6685C6
Tritanopia (blue-blind)
#908294
Achromatopsia (no color)
#858585
Design tokens & code
CSS
--color: #9874c8; /* rgb */ color: rgb(152, 116, 200); /* oklch */ color: oklch(62.8% 0.128 302.6);
Tailwind
colors: {
custom: {
50: '#b89cd9',
500: '#9874c8',
950: '#000000',
},
}SCSS
$custom: #9874c8; $custom-light: #b89cd9; $custom-dark: #000000;
JSON
{
"hex": "#9874c8",
"rgb": {
"r": 152,
"g": 116,
"b": 200
},
"hsl": {
"h": 265.714,
"s": 43.299,
"l": 61.961
},
"oklch": {
"l": 0.62822,
"c": 0.12782,
"h": 302.6
},
"luminance": 0.23336
}Semantic roles & 50–950 ramp
primary
#9874C8
secondary
#CEDBBC
accent
#B62F7C
background
#FBF9FD
surface
#F6F2FA
border
#D0CCD3
text
#110E14
muted
#807E83