#7F2DC2#7F2DC2
#7F2DC2 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.6% C 0.216 H 304.4°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).
Color values
| HEX | #7F2DC2 |
|---|---|
| RGB | rgb(127, 45, 194) |
| HSL | hsl(273, 62%, 47%) |
| HSV | hsv(273, 77%, 76%) |
| CMYK | cmyk(34.5%, 76.8%, 0%, 23.9%) |
| CIE-LAB | lab(38.35, 60.27, -62.62) |
| CIE-LCH | lch(38.35, 86.91, 313.90°) |
| OKLab | oklab(49.58% 0.1221 -0.1784) |
| OKLCH | oklch(49.58% 0.216 304.4) |
| XYZ | xyz(19.4261, 10.2839, 51.9901) |
| Luminance | 0.1028 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkviolet
#9400D3
ΔE00 4.07
Blueviolet
#8A2BE2
ΔE00 4.57
Darkorchid
#9932CC
ΔE00 5.10
Burple
#6832E3
ΔE00 5.91
Violet (survey)
#9A0EEA
ΔE00 6.17
Purple Blue
#5D21D0
ΔE00 6.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F2DC2 #70C22D
analogous
#352DC2 #7F2DC2 #C22DBB
triadic
#7F2DC2 #C27F2D #2DC27F
tetradic
#7F2DC2 #C2352D #70C22D #2DBBC2
square
#7F2DC2 #C2352D #70C22D #2DBBC2
split-complementary
#7F2DC2 #BBC22D #2DC235
monochromatic
#3E165F #5E2190 #7F2DC2 #9D55D7 #B986E3
Accessibility & contrast
On white
6.87
#7F2DC2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.06
#7F2DC2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F2DC2
6.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F2DC2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F2DC2 | 1.00 | 6.87 | 3.06 | 6.87 |
| #FFFFFF | 6.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0058C6
Deuteranopia (green-blind)
#005ABF
Tritanopia (blue-blind)
#725377
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #7f2dc2; /* rgb */ color: rgb(127, 45, 194); /* oklch */ color: oklch(49.6% 0.216 304.4);
Tailwind
colors: {
custom: {
50: '#aa6fd5',
500: '#7f2dc2',
950: '#000000',
},
}SCSS
$custom: #7f2dc2; $custom-light: #aa6fd5; $custom-dark: #000000;
JSON
{
"hex": "#7f2dc2",
"rgb": {
"r": 127,
"g": 45,
"b": 194
},
"hsl": {
"h": 273.02,
"s": 62.343,
"l": 46.863
},
"oklch": {
"l": 0.4958,
"c": 0.21621,
"h": 304.4
},
"luminance": 0.10284
}Semantic roles & 50–950 ramp
primary
#7F2DC2
secondary
#A1CD7E
accent
#E5428C
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83