#7F2CA5#7F2CA5
#7F2CA5 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.3% C 0.189 H 312.8°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).
Color values
| HEX | #7F2CA5 |
|---|---|
| RGB | rgb(127, 44, 165) |
| HSL | hsl(281, 58%, 41%) |
| HSV | hsv(281, 73%, 65%) |
| CMYK | cmyk(23%, 73.3%, 0%, 35.3%) |
| CIE-LAB | lab(36.04, 54.28, -49.16) |
| CIE-LCH | lch(36.04, 73.24, 317.83°) |
| OKLab | oklab(47.27% 0.1286 -0.1389) |
| OKLCH | oklch(47.27% 0.189 312.8) |
| XYZ | xyz(16.4434, 9.0305, 36.4669) |
| Luminance | 0.0903 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.55
Rebeccapurple
#663399
ΔE00 4.81
Darkmagenta
#8B008B
ΔE00 6.67
Purply
#983FB2
ΔE00 6.71
Darkviolet
#9400D3
ΔE00 6.86
Darkorchid
#9932CC
ΔE00 7.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F2CA5 #52A52C
analogous
#422CA5 #7F2CA5 #A52C8E
triadic
#7F2CA5 #A57F2C #2CA57F
tetradic
#7F2CA5 #A5422C #52A52C #2C8EA5
square
#7F2CA5 #A5422C #52A52C #2C8EA5
split-complementary
#7F2CA5 #8EA52C #2CA542
monochromatic
#351244 #5A1F75 #7F2CA5 #A142CD #B972D9
Accessibility & contrast
On white
7.48
#7F2CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.81
#7F2CA5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F2CA5
7.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F2CA5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F2CA5 | 1.00 | 7.48 | 2.81 | 7.48 |
| #FFFFFF | 7.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051A8
Deuteranopia (green-blind)
#1F57A2
Tritanopia (blue-blind)
#7B4766
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #7f2ca5; /* rgb */ color: rgb(127, 44, 165); /* oklch */ color: oklch(47.3% 0.189 312.8);
Tailwind
colors: {
custom: {
50: '#a86dc0',
500: '#7f2ca5',
950: '#000000',
},
}SCSS
$custom: #7f2ca5; $custom-light: #a86dc0; $custom-dark: #000000;
JSON
{
"hex": "#7f2ca5",
"rgb": {
"r": 127,
"g": 44,
"b": 165
},
"hsl": {
"h": 281.157,
"s": 57.895,
"l": 40.98
},
"oklch": {
"l": 0.47274,
"c": 0.18926,
"h": 312.8
},
"luminance": 0.0903
}Semantic roles & 50–950 ramp
primary
#7F2CA5
secondary
#87C16C
accent
#E14777
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81