#C998F2#C998F2
#C998F2 is a light, vivid violet. Relative luminance 0.413; OKLCH L 75.9% C 0.135 H 308.5°. Best body text is #000000 at 9.26:1 contrast (WCAG AA passes).
Color values
| HEX | #C998F2 |
|---|---|
| RGB | rgb(201, 152, 242) |
| HSL | hsl(273, 78%, 77%) |
| HSV | hsv(273, 37%, 95%) |
| CMYK | cmyk(16.9%, 37.2%, 0%, 5.1%) |
| CIE-LAB | lab(70.38, 34.89, -38.25) |
| CIE-LCH | lch(70.38, 51.78, 312.37°) |
| OKLab | oklab(75.86% 0.084 -0.1058) |
| OKLCH | oklch(75.86% 0.135 308.5) |
| XYZ | xyz(51.3396, 41.2853, 89.2514) |
| Luminance | 0.4128 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Baby Purple
#CA9BF7
ΔE00 1.01
Lavender (survey)
#C79FEF
ΔE00 2.24
Lilac (survey)
#CEA2FD
ΔE00 2.69
Pastel Purple
#CAA0FF
ΔE00 2.78
Liliac
#C48EFD
ΔE00 3.83
Pale Purple
#B790D4
ΔE00 5.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C998F2 #C1F298
analogous
#9C98F2 #C998F2 #F298EE
triadic
#C998F2 #F2C998 #98F2C9
tetradic
#C998F2 #F29C98 #C1F298 #98EEF2
square
#C998F2 #F29C98 #C1F298 #98EEF2
split-complementary
#C998F2 #EEF298 #98F29C
monochromatic
#902BE4 #AD62EB #C998F2 #E5CEF9 #F1E4FC
Accessibility & contrast
On white
2.27
#C998F2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.26
#C998F2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #C998F2
9.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C998F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C998F2 | 1.00 | 2.27 | 9.26 | 9.26 |
| #FFFFFF | 2.27 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.26 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.26 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#86AAF5
Deuteranopia (green-blind)
#91ADEF
Tritanopia (blue-blind)
#C4A5BA
Achromatopsia (no color)
#ACACAC
Design tokens & code
CSS
--color: #c998f2; /* rgb */ color: rgb(201, 152, 242); /* oklch */ color: oklch(75.9% 0.135 308.5);
Tailwind
colors: {
custom: {
50: '#dab7f6',
500: '#c998f2',
950: '#000000',
},
}SCSS
$custom: #c998f2; $custom-light: #dab7f6; $custom-dark: #000000;
JSON
{
"hex": "#c998f2",
"rgb": {
"r": 201,
"g": 152,
"b": 242
},
"hsl": {
"h": 272.667,
"s": 77.586,
"l": 77.255
},
"oklch": {
"l": 0.75857,
"c": 0.13509,
"h": 308.5
},
"luminance": 0.41285
}Semantic roles & 50–950 ramp
primary
#C998F2
secondary
#E4F3D8
accent
#DA0C6A
background
#FDFBFF
surface
#FBF6FE
border
#D4D0D6
text
#151117
muted
#838085