#7951C8#7951C8
#7951C8 is a mid, vivid violet. Relative luminance 0.141; OKLCH L 53.9% C 0.177 H 295.3°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).
Color values
| HEX | #7951C8 |
|---|---|
| RGB | rgb(121, 81, 200) |
| HSL | hsl(260, 52%, 55%) |
| HSV | hsv(260, 60%, 78%) |
| CMYK | cmyk(39.5%, 59.5%, 0%, 21.6%) |
| CIE-LAB | lab(44.40, 43.11, -56.32) |
| CIE-LCH | lch(44.40, 70.93, 307.43°) |
| OKLab | oklab(53.9% 0.0758 -0.1603) |
| OKLCH | oklch(53.9% 0.177 295.3) |
| XYZ | xyz(21.2502, 14.1195, 56.2381) |
| Luminance | 0.1412 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 3.85
Slate Blue
#6A5ACD
ΔE00 4.19
Purpley
#8756E4
ΔE00 4.96
Iris
#6258C4
ΔE00 5.06
Royal Purple
#7851A9
ΔE00 5.33
Bluey Purple
#6241C7
ΔE00 5.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7951C8 #A0C851
analogous
#5165C8 #7951C8 #B451C8
triadic
#7951C8 #C87951 #51C879
tetradic
#7951C8 #C85165 #A0C851 #51C8B4
square
#7951C8 #C85165 #A0C851 #51C8B4
split-complementary
#7951C8 #C8B451 #65C851
monochromatic
#422679 #5B35A7 #7951C8 #9D80D7 #C1AEE5
Accessibility & contrast
On white
5.49
#7951C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.82
#7951C8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7951C8
5.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7951C8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7951C8 | 1.00 | 5.49 | 3.82 | 5.49 |
| #FFFFFF | 5.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006ACC
Deuteranopia (green-blind)
#1867C5
Tritanopia (blue-blind)
#656B85
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #7951c8; /* rgb */ color: rgb(121, 81, 200); /* oklch */ color: oklch(53.9% 0.177 295.3);
Tailwind
colors: {
custom: {
50: '#a583d9',
500: '#7951c8',
950: '#000000',
},
}SCSS
$custom: #7951c8; $custom-light: #a583d9; $custom-dark: #000000;
JSON
{
"hex": "#7951c8",
"rgb": {
"r": 121,
"g": 81,
"b": 200
},
"hsl": {
"h": 260.168,
"s": 51.965,
"l": 55.098
},
"oklch": {
"l": 0.53901,
"c": 0.17727,
"h": 295.3
},
"luminance": 0.1412
}Semantic roles & 50–950 ramp
primary
#7951C8
secondary
#C3D3A1
accent
#DB4CAB
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83