#7F2FCC#7F2FCC
#7F2FCC is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.6% C 0.224 H 301.8°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).
Color values
| HEX | #7F2FCC |
|---|---|
| RGB | rgb(127, 47, 204) |
| HSL | hsl(271, 63%, 49%) |
| HSV | hsv(271, 77%, 80%) |
| CMYK | cmyk(37.7%, 77%, 0%, 20%) |
| CIE-LAB | lab(39.42, 61.78, -66.70) |
| CIE-LCH | lch(39.42, 90.91, 312.81°) |
| OKLab | oklab(50.58% 0.118 -0.1904) |
| OKLCH | oklch(50.58% 0.224 301.8) |
| XYZ | xyz(20.6654, 10.9046, 58.1311) |
| Luminance | 0.1090 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blueviolet
#8A2BE2
ΔE00 3.25
Darkviolet
#9400D3
ΔE00 4.02
Burple
#6832E3
ΔE00 4.71
Darkorchid
#9932CC
ΔE00 4.89
Bluish Purple
#703BE7
ΔE00 5.00
Violet (survey)
#9A0EEA
ΔE00 5.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F2FCC #7CCC2F
analogous
#302FCC #7F2FCC #CC2FCB
triadic
#7F2FCC #CC7F2F #2FCC7F
tetradic
#7F2FCC #CC302F #7CCC2F #2FCBCC
square
#7F2FCC #CC302F #7CCC2F #2FCBCC
split-complementary
#7F2FCC #CBCC2F #2FCC30
monochromatic
#411869 #60249A #7F2FCC #9D5EDA #BC90E5
Accessibility & contrast
On white
6.60
#7F2FCC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.18
#7F2FCC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F2FCC
6.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F2FCC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F2FCC | 1.00 | 6.60 | 3.18 | 6.60 |
| #FFFFFF | 6.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CD0
Deuteranopia (green-blind)
#005CC9
Tritanopia (blue-blind)
#6E597D
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #7f2fcc; /* rgb */ color: rgb(127, 47, 204); /* oklch */ color: oklch(50.6% 0.224 301.8);
Tailwind
colors: {
custom: {
50: '#ab70dd',
500: '#7f2fcc',
950: '#000000',
},
}SCSS
$custom: #7f2fcc; $custom-light: #ab70dd; $custom-dark: #000000;
JSON
{
"hex": "#7f2fcc",
"rgb": {
"r": 127,
"g": 47,
"b": 204
},
"hsl": {
"h": 270.573,
"s": 62.55,
"l": 49.216
},
"oklch": {
"l": 0.5058,
"c": 0.22401,
"h": 301.8
},
"luminance": 0.10905
}Semantic roles & 50–950 ramp
primary
#7F2FCC
secondary
#ABD087
accent
#E64292
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83