#7A2FB3#7A2FB3
#7A2FB3 is a mid, vivid violet. Relative luminance 0.094; OKLCH L 48.0% C 0.198 H 306.0°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).
Color values
| HEX | #7A2FB3 |
|---|---|
| RGB | rgb(122, 47, 179) |
| HSL | hsl(274, 58%, 44%) |
| HSV | hsv(274, 74%, 70%) |
| CMYK | cmyk(31.8%, 73.7%, 0%, 29.8%) |
| CIE-LAB | lab(36.79, 55.14, -56.34) |
| CIE-LCH | lch(36.79, 78.84, 314.38°) |
| OKLab | oklab(47.98% 0.1166 -0.1602) |
| OKLCH | oklch(47.98% 0.198 306) |
| XYZ | xyz(17.1775, 9.4254, 43.5534) |
| Luminance | 0.0943 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.77
Rebeccapurple
#663399
ΔE00 4.90
Darkviolet
#9400D3
ΔE00 5.71
Darkorchid
#9932CC
ΔE00 6.44
Bluey Purple
#6241C7
ΔE00 6.68
Blueviolet
#8A2BE2
ΔE00 6.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A2FB3 #68B32F
analogous
#382FB3 #7A2FB3 #B32FAA
triadic
#7A2FB3 #B37A2F #2FB37A
tetradic
#7A2FB3 #B3382F #68B32F #2FAAB3
square
#7A2FB3 #B3382F #68B32F #2FAAB3
split-complementary
#7A2FB3 #AAB32F #2FB338
monochromatic
#381652 #592283 #7A2FB3 #984FD1 #B57FDD
Accessibility & contrast
On white
7.28
#7A2FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.89
#7A2FB3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7A2FB3
7.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A2FB3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A2FB3 | 1.00 | 7.28 | 2.89 | 7.28 |
| #FFFFFF | 7.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0057B0
Tritanopia (blue-blind)
#704F6F
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #7a2fb3; /* rgb */ color: rgb(122, 47, 179); /* oklch */ color: oklch(48.0% 0.198 306.0);
Tailwind
colors: {
custom: {
50: '#a66fcb',
500: '#7a2fb3',
950: '#000000',
},
}SCSS
$custom: #7a2fb3; $custom-light: #a66fcb; $custom-dark: #000000;
JSON
{
"hex": "#7a2fb3",
"rgb": {
"r": 122,
"g": 47,
"b": 179
},
"hsl": {
"h": 274.091,
"s": 58.407,
"l": 44.314
},
"oklch": {
"l": 0.47977,
"c": 0.1981,
"h": 306
},
"luminance": 0.09425
}Semantic roles & 50–950 ramp
primary
#7A2FB3
secondary
#9AC678
accent
#E24689
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82