#762CA2#762CA2
#762CA2 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.9% C 0.183 H 309.6°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).
Color values
| HEX | #762CA2 |
|---|---|
| RGB | rgb(118, 44, 162) |
| HSL | hsl(278, 57%, 40%) |
| HSV | hsv(278, 73%, 64%) |
| CMYK | cmyk(27.2%, 72.8%, 0%, 36.5%) |
| CIE-LAB | lab(34.52, 51.78, -49.88) |
| CIE-LCH | lch(34.52, 71.90, 316.07°) |
| OKLab | oklab(45.86% 0.117 -0.1413) |
| OKLCH | oklch(45.86% 0.183 309.6) |
| XYZ | xyz(14.8922, 8.2618, 34.9856) |
| Luminance | 0.0826 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.73
Rebeccapurple
#663399
ΔE00 3.29
Darkmagenta
#8B008B
ΔE00 7.30
Darkviolet
#9400D3
ΔE00 7.73
Purple
#800080
ΔE00 8.01
Purply
#983FB2
ΔE00 8.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#762CA2 #58A22C
analogous
#3B2CA2 #762CA2 #A22C93
triadic
#762CA2 #A2762C #2CA276
tetradic
#762CA2 #A23B2C #58A22C #2C93A2
square
#762CA2 #A23B2C #58A22C #2C93A2
split-complementary
#762CA2 #93A22C #2CA23B
monochromatic
#301242 #531F72 #762CA2 #9740CB #B170D8
Accessibility & contrast
On white
7.92
#762CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.65
#762CA2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #762CA2
7.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##762CA2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##762CA2 | 1.00 | 7.92 | 2.65 | 7.92 |
| #FFFFFF | 7.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004EA5
Deuteranopia (green-blind)
#12529F
Tritanopia (blue-blind)
#704764
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #762ca2; /* rgb */ color: rgb(118, 44, 162); /* oklch */ color: oklch(45.9% 0.183 309.6);
Tailwind
colors: {
custom: {
50: '#a26cbe',
500: '#762ca2',
950: '#000000',
},
}SCSS
$custom: #762ca2; $custom-light: #a26cbe; $custom-dark: #000000;
JSON
{
"hex": "#762ca2",
"rgb": {
"r": 118,
"g": 44,
"b": 162
},
"hsl": {
"h": 277.627,
"s": 57.282,
"l": 40.392
},
"oklch": {
"l": 0.45855,
"c": 0.18342,
"h": 309.6
},
"luminance": 0.08262
}Semantic roles & 50–950 ramp
primary
#762CA2
secondary
#8ABF6A
accent
#E14780
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#0F0712
muted
#7F7A81