#7F2CA6#7F2CA6
#7F2CA6 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.3% C 0.190 H 312.5°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).
Color values
| HEX | #7F2CA6 |
|---|---|
| RGB | rgb(127, 44, 166) |
| HSL | hsl(281, 58%, 41%) |
| HSV | hsv(281, 73%, 65%) |
| CMYK | cmyk(23.5%, 73.5%, 0%, 34.9%) |
| CIE-LAB | lab(36.11, 54.49, -49.65) |
| CIE-LCH | lch(36.11, 73.72, 317.66°) |
| OKLab | oklab(47.35% 0.1284 -0.1403) |
| OKLCH | oklch(47.35% 0.19 312.5) |
| XYZ | xyz(16.5348, 9.0670, 36.9481) |
| Luminance | 0.0907 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.65
Rebeccapurple
#663399
ΔE00 4.83
Purply
#983FB2
ΔE00 6.69
Darkviolet
#9400D3
ΔE00 6.73
Darkmagenta
#8B008B
ΔE00 6.80
Darkorchid
#9932CC
ΔE00 7.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F2CA6 #53A62C
analogous
#422CA6 #7F2CA6 #A62C90
triadic
#7F2CA6 #A67F2C #2CA67F
tetradic
#7F2CA6 #A6422C #53A62C #2C90A6
square
#7F2CA6 #A6422C #53A62C #2C90A6
split-complementary
#7F2CA6 #90A62C #2CA642
monochromatic
#351245 #5A1F76 #7F2CA6 #A142CD #B973DA
Accessibility & contrast
On white
7.46
#7F2CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.81
#7F2CA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F2CA6
7.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F2CA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F2CA6 | 1.00 | 7.46 | 2.81 | 7.46 |
| #FFFFFF | 7.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051A9
Deuteranopia (green-blind)
#1E57A3
Tritanopia (blue-blind)
#7B4767
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #7f2ca6; /* rgb */ color: rgb(127, 44, 166); /* oklch */ color: oklch(47.3% 0.190 312.5);
Tailwind
colors: {
custom: {
50: '#a86dc1',
500: '#7f2ca6',
950: '#000000',
},
}SCSS
$custom: #7f2ca6; $custom-light: #a86dc1; $custom-dark: #000000;
JSON
{
"hex": "#7f2ca6",
"rgb": {
"r": 127,
"g": 44,
"b": 166
},
"hsl": {
"h": 280.82,
"s": 58.095,
"l": 41.176
},
"oklch": {
"l": 0.47346,
"c": 0.19021,
"h": 312.5
},
"luminance": 0.09067
}Semantic roles & 50–950 ramp
primary
#7F2CA6
secondary
#88C16D
accent
#E14678
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81