#CB7EF2#CB7EF2
#CB7EF2 is a light, vivid violet. Relative luminance 0.340; OKLCH L 71.9% C 0.179 H 313.3°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).
Color values
| HEX | #CB7EF2 |
|---|---|
| RGB | rgb(203, 126, 242) |
| HSL | hsl(280, 82%, 72%) |
| HSV | hsv(280, 48%, 95%) |
| CMYK | cmyk(16.1%, 47.9%, 0%, 5.1%) |
| CIE-LAB | lab(64.99, 49.41, -46.68) |
| CIE-LCH | lch(64.99, 67.97, 316.63°) |
| OKLab | oklab(71.86% 0.1225 -0.1299) |
| OKLCH | oklch(71.86% 0.179 313.3) |
| XYZ | xyz(48.1138, 34.0302, 88.0211) |
| Luminance | 0.3403 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 3.16
Easter Purple
#C071FE
ΔE00 4.53
Liliac
#C48EFD
ΔE00 4.53
Light Urple
#B36FF6
ΔE00 6.13
Orchid
#DA70D6
ΔE00 6.74
Bright Lavender
#C760FF
ΔE00 6.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CB7EF2 #A5F27E
analogous
#917EF2 #CB7EF2 #F27EDF
triadic
#CB7EF2 #F2CB7E #7EF2CB
tetradic
#CB7EF2 #F2917E #A5F27E #7EDFF2
square
#CB7EF2 #F2917E #A5F27E #7EDFF2
split-complementary
#CB7EF2 #DFF27E #7EF291
monochromatic
#9C16DF #B546EC #CB7EF2 #E1B6F8 #F4E3FC
Accessibility & contrast
On white
2.69
#CB7EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.81
#CB7EF2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CB7EF2
7.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CB7EF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CB7EF2 | 1.00 | 2.69 | 7.81 | 7.81 |
| #FFFFFF | 2.69 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.81 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.81 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6499F6
Deuteranopia (green-blind)
#7BA0EF
Tritanopia (blue-blind)
#C890AD
Achromatopsia (no color)
#9E9E9E
Design tokens & code
CSS
--color: #cb7ef2; /* rgb */ color: rgb(203, 126, 242); /* oklch */ color: oklch(71.9% 0.179 313.3);
Tailwind
colors: {
custom: {
50: '#dda5f7',
500: '#cb7ef2',
950: '#000000',
},
}SCSS
$custom: #cb7ef2; $custom-light: #dda5f7; $custom-dark: #000000;
JSON
{
"hex": "#cb7ef2",
"rgb": {
"r": 203,
"g": 126,
"b": 242
},
"hsl": {
"h": 279.828,
"s": 81.69,
"l": 72.157
},
"oklch": {
"l": 0.71859,
"c": 0.17856,
"h": 313.3
},
"luminance": 0.34029
}Semantic roles & 50–950 ramp
primary
#CB7EF2
secondary
#E1F4D7
accent
#DE0750
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85