#7952CB#7952CB
#7952CB is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.3% C 0.180 H 294.5°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).
Color values
| HEX | #7952CB |
|---|---|
| RGB | rgb(121, 82, 203) |
| HSL | hsl(259, 54%, 56%) |
| HSV | hsv(259, 60%, 80%) |
| CMYK | cmyk(40.4%, 59.6%, 0%, 20.4%) |
| CIE-LAB | lab(44.82, 43.36, -57.39) |
| CIE-LCH | lch(44.82, 71.92, 307.07°) |
| OKLab | oklab(54.27% 0.0745 -0.1634) |
| OKLCH | oklch(54.27% 0.18 294.5) |
| XYZ | xyz(21.6791, 14.4108, 58.1277) |
| Luminance | 0.1441 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 3.47
Slate Blue
#6A5ACD
ΔE00 3.86
Purpley
#8756E4
ΔE00 4.51
Iris
#6258C4
ΔE00 4.92
Dark Periwinkle
#665FD1
ΔE00 5.69
Royal Purple
#7851A9
ΔE00 5.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7952CB #A4CB52
analogous
#5267CB #7952CB #B552CB
triadic
#7952CB #CB7952 #52CB79
tetradic
#7952CB #CB5267 #A4CB52 #52CBB5
square
#7952CB #CB5267 #A4CB52 #52CBB5
split-complementary
#7952CB #CBB552 #67CB52
monochromatic
#42267D #5B34AC #7952CB #9D81D9 #C2B0E7
Accessibility & contrast
On white
5.41
#7952CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.88
#7952CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7952CB
5.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7952CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7952CB | 1.00 | 5.41 | 3.88 | 5.41 |
| #FFFFFF | 5.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006BCF
Deuteranopia (green-blind)
#1368C8
Tritanopia (blue-blind)
#646D87
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #7952cb; /* rgb */ color: rgb(121, 82, 203); /* oklch */ color: oklch(54.3% 0.180 294.5);
Tailwind
colors: {
custom: {
50: '#a584dc',
500: '#7952cb',
950: '#000000',
},
}SCSS
$custom: #7952cb; $custom-light: #a584dc; $custom-dark: #000000;
JSON
{
"hex": "#7952cb",
"rgb": {
"r": 121,
"g": 82,
"b": 203
},
"hsl": {
"h": 259.339,
"s": 53.778,
"l": 55.882
},
"oklch": {
"l": 0.54267,
"c": 0.17958,
"h": 294.5
},
"luminance": 0.14411
}Semantic roles & 50–950 ramp
primary
#7952CB
secondary
#C5D5A3
accent
#DD4BAE
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83