#7F5CF2#7F5CF2
#7F5CF2 is a mid, highly saturated violet. Relative luminance 0.186; OKLCH L 59.2% C 0.214 H 288.9°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).
Color values
| HEX | #7F5CF2 |
|---|---|
| RGB | rgb(127, 92, 242) |
| HSL | hsl(254, 85%, 65%) |
| HSV | hsv(254, 62%, 95%) |
| CMYK | cmyk(47.5%, 62%, 0%, 5.1%) |
| CIE-LAB | lab(50.19, 49.77, -70.81) |
| CIE-LCH | lch(50.19, 86.55, 305.10°) |
| OKLab | oklab(59.18% 0.0693 -0.2027) |
| OKLCH | oklch(59.18% 0.214 288.9) |
| XYZ | xyz(28.6019, 18.5759, 86.0657) |
| Luminance | 0.1858 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.01
Mediumslateblue
#7B68EE
ΔE00 3.40
Light Indigo
#6D5ACF
ΔE00 5.85
Dark Periwinkle
#665FD1
ΔE00 6.36
Slate Blue
#6A5ACD
ΔE00 6.37
Lighter Purple
#A55AF4
ΔE00 6.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F5CF2 #CFF25C
analogous
#5C84F2 #7F5CF2 #CA5CF2
triadic
#7F5CF2 #F27F5C #5CF27F
tetradic
#7F5CF2 #F25C84 #CFF25C #5CF2CA
square
#7F5CF2 #F25C84 #CFF25C #5CF2CA
split-complementary
#7F5CF2 #F2CA5C #84F25C
monochromatic
#3A10C4 #5223ED #7F5CF2 #AC95F7 #D8CDFB
Accessibility & contrast
On white
4.45
#7F5CF2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.72
#7F5CF2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7F5CF2
4.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F5CF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7F5CF2 | 1.00 | 4.45 | 4.72 | 4.72 |
| #FFFFFF | 4.45 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.72 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.72 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007BF7
Deuteranopia (green-blind)
#0074EF
Tritanopia (blue-blind)
#597F9F
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #7f5cf2; /* rgb */ color: rgb(127, 92, 242); /* oklch */ color: oklch(59.2% 0.214 288.9);
Tailwind
colors: {
custom: {
50: '#ac8cf7',
500: '#7f5cf2',
950: '#000000',
},
}SCSS
$custom: #7f5cf2; $custom-light: #ac8cf7; $custom-dark: #000000;
JSON
{
"hex": "#7f5cf2",
"rgb": {
"r": 127,
"g": 92,
"b": 242
},
"hsl": {
"h": 254,
"s": 85.227,
"l": 65.49
},
"oklch": {
"l": 0.59175,
"c": 0.21416,
"h": 288.9
},
"luminance": 0.18577
}Semantic roles & 50–950 ramp
primary
#7F5CF2
secondary
#E2EEBC
accent
#E204AE
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85