#7951CB#7951CB
#7951CB is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.1% C 0.181 H 294.7°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).
Color values
| HEX | #7951CB |
|---|---|
| RGB | rgb(121, 81, 203) |
| HSL | hsl(260, 54%, 56%) |
| HSV | hsv(260, 60%, 80%) |
| CMYK | cmyk(40.4%, 60.1%, 0%, 20.4%) |
| CIE-LAB | lab(44.61, 43.91, -57.73) |
| CIE-LCH | lch(44.61, 72.53, 307.26°) |
| OKLab | oklab(54.11% 0.0757 -0.1644) |
| OKLCH | oklch(54.11% 0.181 294.7) |
| XYZ | xyz(21.6042, 14.2611, 58.1027) |
| Luminance | 0.1426 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 3.66
Slate Blue
#6A5ACD
ΔE00 4.04
Purpley
#8756E4
ΔE00 4.61
Iris
#6258C4
ΔE00 5.04
Bluey Purple
#6241C7
ΔE00 5.75
Royal Purple
#7851A9
ΔE00 5.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7951CB #A3CB51
analogous
#5166CB #7951CB #B651CB
triadic
#7951CB #CB7951 #51CB79
tetradic
#7951CB #CB5166 #A3CB51 #51CBB6
square
#7951CB #CB5166 #A3CB51 #51CBB6
split-complementary
#7951CB #CBB651 #66CB51
monochromatic
#42257C #5B33AC #7951CB #9D80D9 #C2AFE7
Accessibility & contrast
On white
5.45
#7951CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.85
#7951CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7951CB
5.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7951CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7951CB | 1.00 | 5.45 | 3.85 | 5.45 |
| #FFFFFF | 5.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006BCF
Deuteranopia (green-blind)
#0F68C8
Tritanopia (blue-blind)
#646C86
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #7951cb; /* rgb */ color: rgb(121, 81, 203); /* oklch */ color: oklch(54.1% 0.181 294.7);
Tailwind
colors: {
custom: {
50: '#a583dc',
500: '#7951cb',
950: '#000000',
},
}SCSS
$custom: #7951cb; $custom-light: #a583dc; $custom-dark: #000000;
JSON
{
"hex": "#7951cb",
"rgb": {
"r": 121,
"g": 81,
"b": 203
},
"hsl": {
"h": 259.672,
"s": 53.982,
"l": 55.686
},
"oklch": {
"l": 0.54112,
"c": 0.18097,
"h": 294.7
},
"luminance": 0.14262
}Semantic roles & 50–950 ramp
primary
#7951CB
secondary
#C5D5A3
accent
#DD4AAD
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83