#7A2FAC#7A2FAC
#7A2FAC is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.4% C 0.191 H 308.1°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).
Color values
| HEX | #7A2FAC |
|---|---|
| RGB | rgb(122, 47, 172) |
| HSL | hsl(276, 57%, 43%) |
| HSV | hsv(276, 73%, 67%) |
| CMYK | cmyk(29.1%, 72.7%, 0%, 32.5%) |
| CIE-LAB | lab(36.27, 53.55, -53.02) |
| CIE-LCH | lch(36.27, 75.36, 315.28°) |
| OKLab | oklab(47.44% 0.1178 -0.1504) |
| OKLCH | oklch(47.44% 0.191 308.1) |
| XYZ | xyz(16.4874, 9.1494, 39.9192) |
| Luminance | 0.0915 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.86
Rebeccapurple
#663399
ΔE00 4.28
Darkviolet
#9400D3
ΔE00 6.40
Darkorchid
#9932CC
ΔE00 6.95
Purply
#983FB2
ΔE00 7.20
Bluey Purple
#6241C7
ΔE00 7.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A2FAC #61AC2F
analogous
#3B2FAC #7A2FAC #AC2F9F
triadic
#7A2FAC #AC7A2F #2FAC7A
tetradic
#7A2FAC #AC3B2F #61AC2F #2F9FAC
square
#7A2FAC #AC3B2F #61AC2F #2F9FAC
split-complementary
#7A2FAC #9FAC2F #2FAC3B
monochromatic
#36154C #58227C #7A2FAC #994BCE #B47BDB
Accessibility & contrast
On white
7.42
#7A2FAC on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.83
#7A2FAC on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7A2FAC
7.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A2FAC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A2FAC | 1.00 | 7.42 | 2.83 | 7.42 |
| #FFFFFF | 7.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053B0
Deuteranopia (green-blind)
#0656A9
Tritanopia (blue-blind)
#724C6B
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #7a2fac; /* rgb */ color: rgb(122, 47, 172); /* oklch */ color: oklch(47.4% 0.191 308.1);
Tailwind
colors: {
custom: {
50: '#a56ec5',
500: '#7a2fac',
950: '#000000',
},
}SCSS
$custom: #7a2fac; $custom-light: #a56ec5; $custom-dark: #000000;
JSON
{
"hex": "#7a2fac",
"rgb": {
"r": 122,
"g": 47,
"b": 172
},
"hsl": {
"h": 276,
"s": 57.078,
"l": 42.941
},
"oklch": {
"l": 0.47444,
"c": 0.19105,
"h": 308.1
},
"luminance": 0.09149
}Semantic roles & 50–950 ramp
primary
#7A2FAC
secondary
#93C374
accent
#E04785
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82