#7951CF#7951CF
#7951CF is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.4% C 0.186 H 294.0°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).
Color values
| HEX | #7951CF |
|---|---|
| RGB | rgb(121, 81, 207) |
| HSL | hsl(259, 57%, 56%) |
| HSV | hsv(259, 61%, 81%) |
| CMYK | cmyk(41.5%, 60.9%, 0%, 18.8%) |
| CIE-LAB | lab(44.88, 45.00, -59.59) |
| CIE-LCH | lch(44.88, 74.67, 307.06°) |
| OKLab | oklab(54.4% 0.0755 -0.1699) |
| OKLCH | oklch(54.4% 0.186 294) |
| XYZ | xyz(22.0871, 14.4542, 60.6456) |
| Luminance | 0.1446 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 3.51
Slate Blue
#6A5ACD
ΔE00 3.93
Purpley
#8756E4
ΔE00 4.18
Iris
#6258C4
ΔE00 5.08
Dark Periwinkle
#665FD1
ΔE00 5.71
Bluish Purple
#703BE7
ΔE00 5.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7951CF #A7CF51
analogous
#5168CF #7951CF #B851CF
triadic
#7951CF #CF7951 #51CF79
tetradic
#7951CF #CF5168 #A7CF51 #51CFB8
square
#7951CF #CF5168 #A7CF51 #51CFB8
split-complementary
#7951CF #CFB851 #68CF51
monochromatic
#422482 #5A31B2 #7951CF #9E81DC #C3B1E9
Accessibility & contrast
On white
5.40
#7951CF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.89
#7951CF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7951CF
5.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7951CF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7951CF | 1.00 | 5.40 | 3.89 | 5.40 |
| #FFFFFF | 5.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006CD3
Deuteranopia (green-blind)
#0068CC
Tritanopia (blue-blind)
#626D88
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #7951cf; /* rgb */ color: rgb(121, 81, 207); /* oklch */ color: oklch(54.4% 0.186 294.0);
Tailwind
colors: {
custom: {
50: '#a584de',
500: '#7951cf',
950: '#000000',
},
}SCSS
$custom: #7951cf; $custom-light: #a584de; $custom-dark: #000000;
JSON
{
"hex": "#7951cf",
"rgb": {
"r": 121,
"g": 81,
"b": 207
},
"hsl": {
"h": 259.048,
"s": 56.757,
"l": 56.471
},
"oklch": {
"l": 0.54397,
"c": 0.18589,
"h": 294
},
"luminance": 0.14455
}Semantic roles & 50–950 ramp
primary
#7951CF
secondary
#C7D8A4
accent
#E048B0
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83