#7F2CA3#7F2CA3
#7F2CA3 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.1% C 0.187 H 313.4°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).
Color values
| HEX | #7F2CA3 |
|---|---|
| RGB | rgb(127, 44, 163) |
| HSL | hsl(282, 57%, 41%) |
| HSV | hsv(282, 73%, 64%) |
| CMYK | cmyk(22.1%, 73%, 0%, 36.1%) |
| CIE-LAB | lab(35.90, 53.86, -48.18) |
| CIE-LCH | lch(35.90, 72.27, 318.18°) |
| OKLab | oklab(47.13% 0.1288 -0.136) |
| OKLCH | oklch(47.13% 0.187 313.4) |
| XYZ | xyz(16.2628, 8.9582, 35.5157) |
| Luminance | 0.0896 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.37
Rebeccapurple
#663399
ΔE00 4.81
Darkmagenta
#8B008B
ΔE00 6.41
Purply
#983FB2
ΔE00 6.75
Warm Purple
#952E8F
ΔE00 7.10
Darkviolet
#9400D3
ΔE00 7.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F2CA3 #50A32C
analogous
#442CA3 #7F2CA3 #A32C8B
triadic
#7F2CA3 #A37F2C #2CA37F
tetradic
#7F2CA3 #A3442C #50A32C #2C8BA3
square
#7F2CA3 #A3442C #50A32C #2C8BA3
split-complementary
#7F2CA3 #8BA32C #2CA344
monochromatic
#341243 #591F73 #7F2CA3 #A241CC #B971D9
Accessibility & contrast
On white
7.52
#7F2CA3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.79
#7F2CA3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F2CA3
7.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F2CA3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F2CA3 | 1.00 | 7.52 | 2.79 | 7.52 |
| #FFFFFF | 7.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050A6
Deuteranopia (green-blind)
#2256A0
Tritanopia (blue-blind)
#7B4665
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #7f2ca3; /* rgb */ color: rgb(127, 44, 163); /* oklch */ color: oklch(47.1% 0.187 313.4);
Tailwind
colors: {
custom: {
50: '#a86dbf',
500: '#7f2ca3',
950: '#000000',
},
}SCSS
$custom: #7f2ca3; $custom-light: #a86dbf; $custom-dark: #000000;
JSON
{
"hex": "#7f2ca3",
"rgb": {
"r": 127,
"g": 44,
"b": 163
},
"hsl": {
"h": 281.849,
"s": 57.488,
"l": 40.588
},
"oklch": {
"l": 0.47131,
"c": 0.18734,
"h": 313.4
},
"luminance": 0.08958
}Semantic roles & 50–950 ramp
primary
#7F2CA3
secondary
#85C06B
accent
#E14776
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81