#CD7AFB#CD7AFB
#CD7AFB is a light, vivid violet. Relative luminance 0.339; OKLCH L 72.0% C 0.195 H 312.2°. Best body text is #000000 at 7.77:1 contrast (WCAG AA passes).
Color values
| HEX | #CD7AFB |
|---|---|
| RGB | rgb(205, 122, 251) |
| HSL | hsl(279, 94%, 73%) |
| HSV | hsv(279, 51%, 98%) |
| CMYK | cmyk(18.3%, 51.4%, 0%, 1.6%) |
| CIE-LAB | lab(64.85, 53.89, -51.82) |
| CIE-LCH | lch(64.85, 74.76, 316.12°) |
| OKLab | oklab(71.96% 0.1311 -0.1448) |
| OKLCH | oklch(71.96% 0.195 312.2) |
| XYZ | xyz(49.5459, 33.8643, 95.1745) |
| Luminance | 0.3386 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 2.56
Easter Purple
#C071FE
ΔE00 3.38
Liliac
#C48EFD
ΔE00 5.00
Light Urple
#B36FF6
ΔE00 5.43
Bright Lavender
#C760FF
ΔE00 5.58
Bright Lilac
#C95EFB
ΔE00 5.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CD7AFB #A8FB7A
analogous
#8C7AFB #CD7AFB #FB7AE8
triadic
#CD7AFB #FBCD7A #7AFBCD
tetradic
#CD7AFB #FB8C7A #A8FB7A #7AE8FB
square
#CD7AFB #FB8C7A #A8FB7A #7AE8FB
split-complementary
#CD7AFB #E8FB7A #7AFB8C
monochromatic
#9F07F3 #B73FF9 #CD7AFB #E3B5FD #F4E1FE
Accessibility & contrast
On white
2.70
#CD7AFB on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.77
#CD7AFB on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CD7AFB
7.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CD7AFB | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CD7AFB | 1.00 | 2.70 | 7.77 | 7.77 |
| #FFFFFF | 2.70 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.77 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.77 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5999FF
Deuteranopia (green-blind)
#739FF8
Tritanopia (blue-blind)
#C88FAF
Achromatopsia (no color)
#9D9D9D
Design tokens & code
CSS
--color: #cd7afb; /* rgb */ color: rgb(205, 122, 251); /* oklch */ color: oklch(72.0% 0.195 312.2);
Tailwind
colors: {
custom: {
50: '#dfa3fd',
500: '#cd7afb',
950: '#000000',
},
}SCSS
$custom: #cd7afb; $custom-light: #dfa3fd; $custom-dark: #000000;
JSON
{
"hex": "#cd7afb",
"rgb": {
"r": 205,
"g": 122,
"b": 251
},
"hsl": {
"h": 278.605,
"s": 94.161,
"l": 73.137
},
"oklch": {
"l": 0.71955,
"c": 0.19535,
"h": 312.2
},
"luminance": 0.33863
}Semantic roles & 50–950 ramp
primary
#CD7AFB
secondary
#E1F6D5
accent
#E60052
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F18
muted
#837F86