#7F2CAC#7F2CAC
#7F2CAC is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.8% C 0.196 H 310.6°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).
Color values
| HEX | #7F2CAC |
|---|---|
| RGB | rgb(127, 44, 172) |
| HSL | hsl(279, 59%, 42%) |
| HSV | hsv(279, 74%, 67%) |
| CMYK | cmyk(26.2%, 74.4%, 0%, 32.5%) |
| CIE-LAB | lab(36.54, 55.78, -52.55) |
| CIE-LCH | lch(36.54, 76.64, 316.71°) |
| OKLab | oklab(47.79% 0.1275 -0.1488) |
| OKLCH | oklch(47.79% 0.196 310.6) |
| XYZ | xyz(17.0980, 9.2923, 39.9146) |
| Luminance | 0.0929 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.37
Rebeccapurple
#663399
ΔE00 5.03
Darkviolet
#9400D3
ΔE00 5.96
Darkorchid
#9932CC
ΔE00 6.53
Purply
#983FB2
ΔE00 6.68
Darkmagenta
#8B008B
ΔE00 7.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F2CAC #59AC2C
analogous
#3F2CAC #7F2CAC #AC2C99
triadic
#7F2CAC #AC7F2C #2CAC7F
tetradic
#7F2CAC #AC3F2C #59AC2C #2C99AC
square
#7F2CAC #AC3F2C #59AC2C #2C99AC
split-complementary
#7F2CAC #99AC2C #2CAC3F
monochromatic
#37134B #5B207B #7F2CAC #9F46D0 #B876DC
Accessibility & contrast
On white
7.35
#7F2CAC on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.86
#7F2CAC on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F2CAC
7.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F2CAC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F2CAC | 1.00 | 7.35 | 2.86 | 7.35 |
| #FFFFFF | 7.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052B0
Deuteranopia (green-blind)
#1157A9
Tritanopia (blue-blind)
#794A6A
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #7f2cac; /* rgb */ color: rgb(127, 44, 172); /* oklch */ color: oklch(47.8% 0.196 310.6);
Tailwind
colors: {
custom: {
50: '#a96ec5',
500: '#7f2cac',
950: '#000000',
},
}SCSS
$custom: #7f2cac; $custom-light: #a96ec5; $custom-dark: #000000;
JSON
{
"hex": "#7f2cac",
"rgb": {
"r": 127,
"g": 44,
"b": 172
},
"hsl": {
"h": 278.906,
"s": 59.259,
"l": 42.353
},
"oklch": {
"l": 0.47785,
"c": 0.19598,
"h": 310.6
},
"luminance": 0.09292
}Semantic roles & 50–950 ramp
primary
#7F2CAC
secondary
#8DC470
accent
#E2457D
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82