#C97EF2#C97EF2
#C97EF2 is a light, vivid violet. Relative luminance 0.338; OKLCH L 71.6% C 0.178 H 312.5°. Best body text is #000000 at 7.75:1 contrast (WCAG AA passes).
Color values
| HEX | #C97EF2 |
|---|---|
| RGB | rgb(201, 126, 242) |
| HSL | hsl(279, 82%, 72%) |
| HSV | hsv(279, 48%, 95%) |
| CMYK | cmyk(16.9%, 47.9%, 0%, 5.1%) |
| CIE-LAB | lab(64.76, 48.86, -47.04) |
| CIE-LCH | lch(64.76, 67.83, 316.09°) |
| OKLab | oklab(71.65% 0.1201 -0.131) |
| OKLCH | oklch(71.65% 0.178 312.5) |
| XYZ | xyz(47.5725, 33.7511, 87.9957) |
| Luminance | 0.3375 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 2.86
Easter Purple
#C071FE
ΔE00 4.29
Liliac
#C48EFD
ΔE00 4.38
Light Urple
#B36FF6
ΔE00 5.83
Bright Lavender
#C760FF
ΔE00 6.64
Bright Lilac
#C95EFB
ΔE00 6.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C97EF2 #A7F27E
analogous
#8F7EF2 #C97EF2 #F27EE1
triadic
#C97EF2 #F2C97E #7EF2C9
tetradic
#C97EF2 #F28F7E #A7F27E #7EE1F2
square
#C97EF2 #F28F7E #A7F27E #7EE1F2
split-complementary
#C97EF2 #E1F27E #7EF28F
monochromatic
#9816DF #B246EC #C97EF2 #E0B6F8 #F3E3FC
Accessibility & contrast
On white
2.71
#C97EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.75
#C97EF2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #C97EF2
7.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C97EF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C97EF2 | 1.00 | 2.71 | 7.75 | 7.75 |
| #FFFFFF | 2.71 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.75 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.75 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6499F6
Deuteranopia (green-blind)
#799FEF
Tritanopia (blue-blind)
#C590AD
Achromatopsia (no color)
#9D9D9D
Design tokens & code
CSS
--color: #c97ef2; /* rgb */ color: rgb(201, 126, 242); /* oklch */ color: oklch(71.6% 0.178 312.5);
Tailwind
colors: {
custom: {
50: '#dba5f7',
500: '#c97ef2',
950: '#000000',
},
}SCSS
$custom: #c97ef2; $custom-light: #dba5f7; $custom-dark: #000000;
JSON
{
"hex": "#c97ef2",
"rgb": {
"r": 201,
"g": 126,
"b": 242
},
"hsl": {
"h": 278.793,
"s": 81.69,
"l": 72.157
},
"oklch": {
"l": 0.71645,
"c": 0.17776,
"h": 312.5
},
"luminance": 0.3375
}Semantic roles & 50–950 ramp
primary
#C97EF2
secondary
#E1F4D7
accent
#DE0753
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85