#7952F2#7952F2
#7952F2 is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.2% C 0.227 H 288.3°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).
Color values
| HEX | #7952F2 |
|---|---|
| RGB | rgb(121, 82, 242) |
| HSL | hsl(255, 86%, 64%) |
| HSV | hsv(255, 66%, 95%) |
| CMYK | cmyk(50%, 66.1%, 0%, 5.1%) |
| CIE-LAB | lab(47.64, 54.09, -74.98) |
| CIE-LCH | lch(47.64, 92.45, 305.80°) |
| OKLab | oklab(57.2% 0.071 -0.2151) |
| OKLCH | oklch(57.2% 0.227 288.3) |
| XYZ | xyz(26.9248, 16.5091, 85.7551) |
| Luminance | 0.1651 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.15
Light Indigo
#6D5ACF
ΔE00 5.36
Purpleish Blue
#6140EF
ΔE00 5.70
Slate Blue
#6A5ACD
ΔE00 5.84
Bluish Purple
#703BE7
ΔE00 5.92
Mediumslateblue
#7B68EE
ΔE00 5.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7952F2 #CBF252
analogous
#527BF2 #7952F2 #C952F2
triadic
#7952F2 #F27952 #52F279
tetradic
#7952F2 #F2527B #CBF252 #52F2C9
square
#7952F2 #F2527B #CBF252 #52F2C9
split-complementary
#7952F2 #F2C952 #7BF252
monochromatic
#380EBC #4D19EE #7952F2 #A58BF6 #D1C4FB
Accessibility & contrast
On white
4.88
#7952F2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.30
#7952F2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7952F2
4.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7952F2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7952F2 | 1.00 | 4.88 | 4.30 | 4.88 |
| #FFFFFF | 4.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0075F7
Deuteranopia (green-blind)
#006DEF
Tritanopia (blue-blind)
#4D7A9B
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #7952f2; /* rgb */ color: rgb(121, 82, 242); /* oklch */ color: oklch(57.2% 0.227 288.3);
Tailwind
colors: {
custom: {
50: '#a985f7',
500: '#7952f2',
950: '#000000',
},
}SCSS
$custom: #7952f2; $custom-light: #a985f7; $custom-dark: #000000;
JSON
{
"hex": "#7952f2",
"rgb": {
"r": 121,
"g": 82,
"b": 242
},
"hsl": {
"h": 254.625,
"s": 86.022,
"l": 63.529
},
"oklch": {
"l": 0.57197,
"c": 0.22654,
"h": 288.3
},
"luminance": 0.1651
}Semantic roles & 50–950 ramp
primary
#7952F2
secondary
#DEECB4
accent
#E303AC
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85