#7B2AA8#7B2AA8
#7B2AA8 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.8% C 0.193 H 310.2°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).
Color values
| HEX | #7B2AA8 |
|---|---|
| RGB | rgb(123, 42, 168) |
| HSL | hsl(279, 60%, 41%) |
| HSV | hsv(279, 75%, 66%) |
| CMYK | cmyk(26.8%, 75%, 0%, 34.1%) |
| CIE-LAB | lab(35.39, 54.93, -52.05) |
| CIE-LCH | lch(35.39, 75.68, 316.54°) |
| OKLab | oklab(46.76% 0.1247 -0.1475) |
| OKLCH | oklch(46.76% 0.193 310.2) |
| XYZ | xyz(16.0628, 8.6944, 37.8702) |
| Luminance | 0.0869 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.77
Rebeccapurple
#663399
ΔE00 4.32
Darkviolet
#9400D3
ΔE00 6.62
Darkmagenta
#8B008B
ΔE00 7.30
Darkorchid
#9932CC
ΔE00 7.50
Purply
#983FB2
ΔE00 7.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7B2AA8 #57A82A
analogous
#3C2AA8 #7B2AA8 #A82A96
triadic
#7B2AA8 #A87B2A #2AA87B
tetradic
#7B2AA8 #A83C2A #57A82A #2A96A8
square
#7B2AA8 #A83C2A #57A82A #2A96A8
split-complementary
#7B2AA8 #96A82A #2AA83C
monochromatic
#331246 #571E77 #7B2AA8 #9C40CF #B571DB
Accessibility & contrast
On white
7.67
#7B2AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.74
#7B2AA8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7B2AA8
7.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7B2AA8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7B2AA8 | 1.00 | 7.67 | 2.74 | 7.67 |
| #FFFFFF | 7.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050AC
Deuteranopia (green-blind)
#0B54A5
Tritanopia (blue-blind)
#754767
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #7b2aa8; /* rgb */ color: rgb(123, 42, 168); /* oklch */ color: oklch(46.8% 0.193 310.2);
Tailwind
colors: {
custom: {
50: '#a66cc3',
500: '#7b2aa8',
950: '#000000',
},
}SCSS
$custom: #7b2aa8; $custom-light: #a66cc3; $custom-dark: #000000;
JSON
{
"hex": "#7b2aa8",
"rgb": {
"r": 123,
"g": 42,
"b": 168
},
"hsl": {
"h": 278.571,
"s": 60,
"l": 41.176
},
"oklch": {
"l": 0.46758,
"c": 0.19315,
"h": 310.2
},
"luminance": 0.08694
}Semantic roles & 50–950 ramp
primary
#7B2AA8
secondary
#8AC36B
accent
#E3457D
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81