#7B2BAB#7B2BAB
#7B2BAB is a mid, vivid violet. Relative luminance 0.089; OKLCH L 47.1% C 0.195 H 309.2°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).
Color values
| HEX | #7B2BAB |
|---|---|
| RGB | rgb(123, 43, 171) |
| HSL | hsl(278, 60%, 42%) |
| HSV | hsv(278, 75%, 67%) |
| CMYK | cmyk(28.1%, 74.9%, 0%, 32.9%) |
| CIE-LAB | lab(35.75, 55.19, -53.26) |
| CIE-LCH | lch(35.75, 76.70, 316.02°) |
| OKLab | oklab(47.08% 0.1232 -0.151) |
| OKLCH | oklch(47.08% 0.195 309.2) |
| XYZ | xyz(16.3815, 8.8793, 39.3711) |
| Luminance | 0.0888 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.27
Rebeccapurple
#663399
ΔE00 4.44
Darkviolet
#9400D3
ΔE00 6.29
Darkorchid
#9932CC
ΔE00 7.17
Purply
#983FB2
ΔE00 7.44
Purple Blue
#5D21D0
ΔE00 7.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7B2BAB #5BAB2B
analogous
#3B2BAB #7B2BAB #AB2B9B
triadic
#7B2BAB #AB7B2B #2BAB7B
tetradic
#7B2BAB #AB3B2B #5BAB2B #2B9BAB
square
#7B2BAB #AB3B2B #5BAB2B #2B9BAB
split-complementary
#7B2BAB #9BAB2B #2BAB3B
monochromatic
#351249 #581F7A #7B2BAB #9B43D0 #B574DC
Accessibility & contrast
On white
7.57
#7B2BAB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.78
#7B2BAB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7B2BAB
7.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7B2BAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7B2BAB | 1.00 | 7.57 | 2.78 | 7.57 |
| #FFFFFF | 7.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051AF
Deuteranopia (green-blind)
#0255A8
Tritanopia (blue-blind)
#744969
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #7b2bab; /* rgb */ color: rgb(123, 43, 171); /* oklch */ color: oklch(47.1% 0.195 309.2);
Tailwind
colors: {
custom: {
50: '#a66dc5',
500: '#7b2bab',
950: '#000000',
},
}SCSS
$custom: #7b2bab; $custom-light: #a66dc5; $custom-dark: #000000;
JSON
{
"hex": "#7b2bab",
"rgb": {
"r": 123,
"g": 43,
"b": 171
},
"hsl": {
"h": 277.5,
"s": 59.813,
"l": 41.961
},
"oklch": {
"l": 0.47083,
"c": 0.19494,
"h": 309.2
},
"luminance": 0.08879
}Semantic roles & 50–950 ramp
primary
#7B2BAB
secondary
#8EC46E
accent
#E34580
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82