#762BA2#762BA2
#762BA2 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.7% C 0.185 H 309.7°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).
Color values
| HEX | #762BA2 |
|---|---|
| RGB | rgb(118, 43, 162) |
| HSL | hsl(278, 58%, 40%) |
| HSV | hsv(278, 73%, 64%) |
| CMYK | cmyk(27.2%, 73.5%, 0%, 36.5%) |
| CIE-LAB | lab(34.37, 52.21, -50.12) |
| CIE-LCH | lch(34.37, 72.37, 316.17°) |
| OKLab | oklab(45.75% 0.118 -0.142) |
| OKLCH | oklch(45.75% 0.185 309.7) |
| XYZ | xyz(14.8554, 8.1882, 34.9733) |
| Luminance | 0.0819 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.62
Rebeccapurple
#663399
ΔE00 3.35
Darkmagenta
#8B008B
ΔE00 7.22
Darkviolet
#9400D3
ΔE00 7.71
Purple
#800080
ΔE00 7.93
Purple Blue
#5D21D0
ΔE00 8.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#762BA2 #57A22B
analogous
#3A2BA2 #762BA2 #A22B93
triadic
#762BA2 #A2762B #2BA276
tetradic
#762BA2 #A23A2B #57A22B #2B93A2
square
#762BA2 #A23A2B #57A22B #2B93A2
split-complementary
#762BA2 #93A22B #2BA23A
monochromatic
#301141 #531E72 #762BA2 #983ECC #B26FD9
Accessibility & contrast
On white
7.96
#762BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.64
#762BA2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #762BA2
7.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##762BA2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##762BA2 | 1.00 | 7.96 | 2.64 | 7.96 |
| #FFFFFF | 7.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004EA5
Deuteranopia (green-blind)
#0F529F
Tritanopia (blue-blind)
#704664
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #762ba2; /* rgb */ color: rgb(118, 43, 162); /* oklch */ color: oklch(45.7% 0.185 309.7);
Tailwind
colors: {
custom: {
50: '#a26cbe',
500: '#762ba2',
950: '#000000',
},
}SCSS
$custom: #762ba2; $custom-light: #a26cbe; $custom-dark: #000000;
JSON
{
"hex": "#762ba2",
"rgb": {
"r": 118,
"g": 43,
"b": 162
},
"hsl": {
"h": 277.815,
"s": 58.049,
"l": 40.196
},
"oklch": {
"l": 0.45748,
"c": 0.18461,
"h": 309.7
},
"luminance": 0.08188
}Semantic roles & 50–950 ramp
primary
#762BA2
secondary
#89C069
accent
#E14780
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#0F0712
muted
#7F7A81