#7F2CAA#7F2CAA
#7F2CAA is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.6% C 0.194 H 311.2°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).
Color values
| HEX | #7F2CAA |
|---|---|
| RGB | rgb(127, 44, 170) |
| HSL | hsl(280, 59%, 42%) |
| HSV | hsv(280, 74%, 67%) |
| CMYK | cmyk(25.3%, 74.1%, 0%, 33.3%) |
| CIE-LAB | lab(36.40, 55.35, -51.59) |
| CIE-LCH | lch(36.40, 75.66, 317.02°) |
| OKLab | oklab(47.64% 0.1278 -0.146) |
| OKLCH | oklch(47.64% 0.194 311.2) |
| XYZ | xyz(16.9074, 9.2161, 38.9106) |
| Luminance | 0.0922 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.11
Rebeccapurple
#663399
ΔE00 4.94
Darkviolet
#9400D3
ΔE00 6.21
Purply
#983FB2
ΔE00 6.67
Darkorchid
#9932CC
ΔE00 6.72
Darkmagenta
#8B008B
ΔE00 7.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F2CAA #57AA2C
analogous
#402CAA #7F2CAA #AA2C96
triadic
#7F2CAA #AA7F2C #2CAA7F
tetradic
#7F2CAA #AA402C #57AA2C #2C96AA
square
#7F2CAA #AA402C #57AA2C #2C96AA
split-complementary
#7F2CAA #96AA2C #2CAA40
monochromatic
#361349 #5B1F79 #7F2CAA #A044CF #B875DB
Accessibility & contrast
On white
7.39
#7F2CAA on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.84
#7F2CAA on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F2CAA
7.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F2CAA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F2CAA | 1.00 | 7.39 | 2.84 | 7.39 |
| #FFFFFF | 7.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052AE
Deuteranopia (green-blind)
#1657A7
Tritanopia (blue-blind)
#794969
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #7f2caa; /* rgb */ color: rgb(127, 44, 170); /* oklch */ color: oklch(47.6% 0.194 311.2);
Tailwind
colors: {
custom: {
50: '#a86dc4',
500: '#7f2caa',
950: '#000000',
},
}SCSS
$custom: #7f2caa; $custom-light: #a86dc4; $custom-dark: #000000;
JSON
{
"hex": "#7f2caa",
"rgb": {
"r": 127,
"g": 44,
"b": 170
},
"hsl": {
"h": 279.524,
"s": 58.879,
"l": 41.961
},
"oklch": {
"l": 0.47637,
"c": 0.19405,
"h": 311.2
},
"luminance": 0.09216
}Semantic roles & 50–950 ramp
primary
#7F2CAA
secondary
#8CC36F
accent
#E2467B
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82