#CB7AFE#CB7AFE
#CB7AFE is a light, vivid violet. Relative luminance 0.338; OKLCH L 71.9% C 0.198 H 310.7°. Best body text is #000000 at 7.75:1 contrast (WCAG AA passes).
Color values
| HEX | #CB7AFE |
|---|---|
| RGB | rgb(203, 122, 254) |
| HSL | hsl(277, 99%, 74%) |
| HSV | hsv(277, 52%, 100%) |
| CMYK | cmyk(20.1%, 52%, 0%, 0.4%) |
| CIE-LAB | lab(64.78, 54.01, -53.60) |
| CIE-LCH | lch(64.78, 76.09, 315.22°) |
| OKLab | oklab(71.9% 0.129 -0.15) |
| OKLCH | oklch(71.9% 0.198 310.7) |
| XYZ | xyz(49.4742, 33.7723, 97.6592) |
| Luminance | 0.3377 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 2.26
Easter Purple
#C071FE
ΔE00 2.94
Liliac
#C48EFD
ΔE00 4.86
Light Urple
#B36FF6
ΔE00 5.04
Bright Lavender
#C760FF
ΔE00 5.40
Bright Lilac
#C95EFB
ΔE00 5.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CB7AFE #ADFE7A
analogous
#897AFE #CB7AFE #FE7AEF
triadic
#CB7AFE #FECB7A #7AFECB
tetradic
#CB7AFE #FE897A #ADFE7A #7AEFFE
square
#CB7AFE #FE897A #ADFE7A #7AEFFE
split-complementary
#CB7AFE #EFFE7A #7AFE89
monochromatic
#9B02FC #B33DFE #CB7AFE #E3B7FE #F3E1FF
Accessibility & contrast
On white
2.71
#CB7AFE on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.75
#CB7AFE on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CB7AFE
7.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CB7AFE | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CB7AFE | 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)
#5699FF
Deuteranopia (green-blind)
#709FFB
Tritanopia (blue-blind)
#C590B1
Achromatopsia (no color)
#9D9D9D
Design tokens & code
CSS
--color: #cb7afe; /* rgb */ color: rgb(203, 122, 254); /* oklch */ color: oklch(71.9% 0.198 310.7);
Tailwind
colors: {
custom: {
50: '#dda3ff',
500: '#cb7afe',
950: '#000000',
},
}SCSS
$custom: #cb7afe; $custom-light: #dda3ff; $custom-dark: #000000;
JSON
{
"hex": "#cb7afe",
"rgb": {
"r": 203,
"g": 122,
"b": 254
},
"hsl": {
"h": 276.818,
"s": 98.507,
"l": 73.725
},
"oklch": {
"l": 0.719,
"c": 0.19786,
"h": 310.7
},
"luminance": 0.33771
}Semantic roles & 50–950 ramp
primary
#CB7AFE
secondary
#E2F7D4
accent
#E60059
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F18
muted
#837F86