#7F2CB7#7F2CB7
#7F2CB7 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.6% C 0.207 H 307.4°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).
Color values
| HEX | #7F2CB7 |
|---|---|
| RGB | rgb(127, 44, 183) |
| HSL | hsl(276, 61%, 45%) |
| HSV | hsv(276, 76%, 72%) |
| CMYK | cmyk(30.6%, 76%, 0%, 28.2%) |
| CIE-LAB | lab(37.36, 58.19, -57.76) |
| CIE-LCH | lch(37.36, 81.99, 315.21°) |
| OKLab | oklab(48.62% 0.1254 -0.1641) |
| OKLCH | oklch(48.62% 0.207 307.4) |
| XYZ | xyz(18.1985, 9.7325, 45.7104) |
| Luminance | 0.0973 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkviolet
#9400D3
ΔE00 4.78
Purple (survey)
#7E1E9C
ΔE00 4.88
Darkorchid
#9932CC
ΔE00 5.67
Rebeccapurple
#663399
ΔE00 5.83
Blueviolet
#8A2BE2
ΔE00 6.11
Purply
#983FB2
ΔE00 6.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F2CB7 #64B72C
analogous
#392CB7 #7F2CB7 #B72CAA
triadic
#7F2CB7 #B77F2C #2CB77F
tetradic
#7F2CB7 #B7392C #64B72C #2CAAB7
square
#7F2CB7 #B7392C #64B72C #2CAAB7
split-complementary
#7F2CB7 #AAB72C #2CB739
monochromatic
#3B1454 #5D2086 #7F2CB7 #9D4CD4 #B87EE0
Accessibility & contrast
On white
7.13
#7F2CB7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.95
#7F2CB7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F2CB7
7.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F2CB7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F2CB7 | 1.00 | 7.13 | 2.95 | 7.13 |
| #FFFFFF | 7.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0055BB
Deuteranopia (green-blind)
#0059B4
Tritanopia (blue-blind)
#764E70
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #7f2cb7; /* rgb */ color: rgb(127, 44, 183); /* oklch */ color: oklch(48.6% 0.207 307.4);
Tailwind
colors: {
custom: {
50: '#a96ecd',
500: '#7f2cb7',
950: '#000000',
},
}SCSS
$custom: #7f2cb7; $custom-light: #a96ecd; $custom-dark: #000000;
JSON
{
"hex": "#7f2cb7",
"rgb": {
"r": 127,
"g": 44,
"b": 183
},
"hsl": {
"h": 275.827,
"s": 61.233,
"l": 44.51
},
"oklch": {
"l": 0.48618,
"c": 0.20658,
"h": 307.4
},
"luminance": 0.09732
}Semantic roles & 50–950 ramp
primary
#7F2CB7
secondary
#97C876
accent
#E44384
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82