#7F2CB2#7F2CB2
#7F2CB2 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.2% C 0.202 H 308.8°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).
Color values
| HEX | #7F2CB2 |
|---|---|
| RGB | rgb(127, 44, 178) |
| HSL | hsl(277, 60%, 44%) |
| HSV | hsv(277, 75%, 70%) |
| CMYK | cmyk(28.7%, 75.3%, 0%, 30.2%) |
| CIE-LAB | lab(36.98, 57.09, -55.41) |
| CIE-LCH | lch(36.98, 79.56, 315.86°) |
| OKLab | oklab(48.24% 0.1264 -0.1572) |
| OKLCH | oklch(48.24% 0.202 308.8) |
| XYZ | xyz(17.6873, 9.5281, 43.0182) |
| Luminance | 0.0953 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.18
Darkviolet
#9400D3
ΔE00 5.27
Rebeccapurple
#663399
ΔE00 5.41
Darkorchid
#9932CC
ΔE00 6.02
Purply
#983FB2
ΔE00 6.77
Blueviolet
#8A2BE2
ΔE00 6.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F2CB2 #5FB22C
analogous
#3C2CB2 #7F2CB2 #B22CA2
triadic
#7F2CB2 #B27F2C #2CB27F
tetradic
#7F2CB2 #B23C2C #5FB22C #2CA2B2
square
#7F2CB2 #B23C2C #5FB22C #2CA2B2
split-complementary
#7F2CB2 #A2B22C #2CB23C
monochromatic
#391450 #5C2081 #7F2CB2 #9E49D2 #B87ADE
Accessibility & contrast
On white
7.23
#7F2CB2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.91
#7F2CB2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F2CB2
7.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F2CB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F2CB2 | 1.00 | 7.23 | 2.91 | 7.23 |
| #FFFFFF | 7.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0058AF
Tritanopia (blue-blind)
#774C6D
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #7f2cb2; /* rgb */ color: rgb(127, 44, 178); /* oklch */ color: oklch(48.2% 0.202 308.8);
Tailwind
colors: {
custom: {
50: '#a96eca',
500: '#7f2cb2',
950: '#000000',
},
}SCSS
$custom: #7f2cb2; $custom-light: #a96eca; $custom-dark: #000000;
JSON
{
"hex": "#7f2cb2",
"rgb": {
"r": 127,
"g": 44,
"b": 178
},
"hsl": {
"h": 277.164,
"s": 60.36,
"l": 43.529
},
"oklch": {
"l": 0.48235,
"c": 0.20176,
"h": 308.8
},
"luminance": 0.09528
}Semantic roles & 50–950 ramp
primary
#7F2CB2
secondary
#93C673
accent
#E44481
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82