#7B2CA3#7B2CA3
#7B2CA3 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.6% C 0.186 H 311.6°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).
Color values
| HEX | #7B2CA3 |
|---|---|
| RGB | rgb(123, 44, 163) |
| HSL | hsl(280, 57%, 41%) |
| HSV | hsv(280, 73%, 64%) |
| CMYK | cmyk(24.5%, 73%, 0%, 36.1%) |
| CIE-LAB | lab(35.32, 53.03, -49.16) |
| CIE-LCH | lch(35.32, 72.31, 317.17°) |
| OKLab | oklab(46.59% 0.1235 -0.139) |
| OKLCH | oklch(46.59% 0.186 311.6) |
| XYZ | xyz(15.6787, 8.6571, 35.4883) |
| Luminance | 0.0866 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.42
Rebeccapurple
#663399
ΔE00 4.11
Darkmagenta
#8B008B
ΔE00 6.81
Darkviolet
#9400D3
ΔE00 7.30
Purply
#983FB2
ΔE00 7.38
Purple
#800080
ΔE00 7.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7B2CA3 #54A32C
analogous
#3F2CA3 #7B2CA3 #A32C8F
triadic
#7B2CA3 #A37B2C #2CA37B
tetradic
#7B2CA3 #A33F2C #54A32C #2C8FA3
square
#7B2CA3 #A33F2C #54A32C #2C8FA3
split-complementary
#7B2CA3 #8FA32C #2CA33F
monochromatic
#321243 #571F73 #7B2CA3 #9D41CC #B671D9
Accessibility & contrast
On white
7.69
#7B2CA3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.73
#7B2CA3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7B2CA3
7.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7B2CA3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7B2CA3 | 1.00 | 7.69 | 2.73 | 7.69 |
| #FFFFFF | 7.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FA6
Deuteranopia (green-blind)
#1B55A0
Tritanopia (blue-blind)
#764665
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #7b2ca3; /* rgb */ color: rgb(123, 44, 163); /* oklch */ color: oklch(46.6% 0.186 311.6);
Tailwind
colors: {
custom: {
50: '#a56dbf',
500: '#7b2ca3',
950: '#000000',
},
}SCSS
$custom: #7b2ca3; $custom-light: #a56dbf; $custom-dark: #000000;
JSON
{
"hex": "#7b2ca3",
"rgb": {
"r": 123,
"g": 44,
"b": 163
},
"hsl": {
"h": 279.832,
"s": 57.488,
"l": 40.588
},
"oklch": {
"l": 0.46591,
"c": 0.18598,
"h": 311.6
},
"luminance": 0.08657
}Semantic roles & 50–950 ramp
primary
#7B2CA3
secondary
#87C06B
accent
#E1477B
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81