#7A2FAA#7A2FAA
#7A2FAA is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.3% C 0.189 H 308.7°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).
Color values
| HEX | #7A2FAA |
|---|---|
| RGB | rgb(122, 47, 170) |
| HSL | hsl(277, 57%, 43%) |
| HSV | hsv(277, 72%, 67%) |
| CMYK | cmyk(28.2%, 72.4%, 0%, 33.3%) |
| CIE-LAB | lab(36.12, 53.10, -52.06) |
| CIE-LCH | lch(36.12, 74.36, 315.56°) |
| OKLab | oklab(47.3% 0.1181 -0.1476) |
| OKLCH | oklch(47.3% 0.189 308.7) |
| XYZ | xyz(16.2968, 9.0732, 38.9152) |
| Luminance | 0.0907 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.62
Rebeccapurple
#663399
ΔE00 4.15
Darkviolet
#9400D3
ΔE00 6.62
Darkorchid
#9932CC
ΔE00 7.12
Purply
#983FB2
ΔE00 7.18
Bluey Purple
#6241C7
ΔE00 7.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A2FAA #5FAA2F
analogous
#3C2FAA #7A2FAA #AA2F9D
triadic
#7A2FAA #AA7A2F #2FAA7A
tetradic
#7A2FAA #AA3C2F #5FAA2F #2F9DAA
square
#7A2FAA #AA3C2F #5FAA2F #2F9DAA
split-complementary
#7A2FAA #9DAA2F #2FAA3C
monochromatic
#35144A #58227A #7A2FAA #9A49CD #B479DA
Accessibility & contrast
On white
7.46
#7A2FAA on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.81
#7A2FAA on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7A2FAA
7.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A2FAA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A2FAA | 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)
#0052AE
Deuteranopia (green-blind)
#0E56A7
Tritanopia (blue-blind)
#734B6A
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #7a2faa; /* rgb */ color: rgb(122, 47, 170); /* oklch */ color: oklch(47.3% 0.189 308.7);
Tailwind
colors: {
custom: {
50: '#a56ec4',
500: '#7a2faa',
950: '#000000',
},
}SCSS
$custom: #7a2faa; $custom-light: #a56ec4; $custom-dark: #000000;
JSON
{
"hex": "#7a2faa",
"rgb": {
"r": 122,
"g": 47,
"b": 170
},
"hsl": {
"h": 276.585,
"s": 56.682,
"l": 42.549
},
"oklch": {
"l": 0.47295,
"c": 0.18903,
"h": 308.7
},
"luminance": 0.09073
}Semantic roles & 50–950 ramp
primary
#7A2FAA
secondary
#92C272
accent
#E04883
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82