#762AA2#762AA2
#762AA2 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.6% C 0.186 H 309.8°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).
Color values
| HEX | #762AA2 |
|---|---|
| RGB | rgb(118, 42, 162) |
| HSL | hsl(278, 59%, 40%) |
| HSV | hsv(278, 74%, 64%) |
| CMYK | cmyk(27.2%, 74.1%, 0%, 36.5%) |
| CIE-LAB | lab(34.22, 52.63, -50.36) |
| CIE-LCH | lch(34.22, 72.84, 316.26°) |
| OKLab | oklab(45.64% 0.119 -0.1427) |
| OKLCH | oklch(45.64% 0.186 309.8) |
| XYZ | xyz(14.8195, 8.1164, 34.9614) |
| Luminance | 0.0812 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.52
Rebeccapurple
#663399
ΔE00 3.42
Darkmagenta
#8B008B
ΔE00 7.15
Darkviolet
#9400D3
ΔE00 7.69
Purple
#800080
ΔE00 7.84
Purple Blue
#5D21D0
ΔE00 8.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#762AA2 #56A22A
analogous
#3A2AA2 #762AA2 #A22A92
triadic
#762AA2 #A2762A #2AA276
tetradic
#762AA2 #A23A2A #56A22A #2A92A2
square
#762AA2 #A23A2A #56A22A #2A92A2
split-complementary
#762AA2 #92A22A #2AA23A
monochromatic
#2F1141 #531D71 #762AA2 #983DCD #B26DD9
Accessibility & contrast
On white
8.01
#762AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.62
#762AA2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #762AA2
8.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##762AA2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##762AA2 | 1.00 | 8.01 | 2.62 | 8.01 |
| #FFFFFF | 8.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#0D529F
Tritanopia (blue-blind)
#704664
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #762aa2; /* rgb */ color: rgb(118, 42, 162); /* oklch */ color: oklch(45.6% 0.186 309.8);
Tailwind
colors: {
custom: {
50: '#a26bbe',
500: '#762aa2',
950: '#000000',
},
}SCSS
$custom: #762aa2; $custom-light: #a26bbe; $custom-dark: #000000;
JSON
{
"hex": "#762aa2",
"rgb": {
"r": 118,
"g": 42,
"b": 162
},
"hsl": {
"h": 278,
"s": 58.824,
"l": 40
},
"oklch": {
"l": 0.45644,
"c": 0.18578,
"h": 309.8
},
"luminance": 0.08116
}Semantic roles & 50–950 ramp
primary
#762AA2
secondary
#88C068
accent
#E2467F
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#0F0712
muted
#7F7A81