#742EA1#742EA1
#742EA1 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.7% C 0.179 H 308.8°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).
Color values
| HEX | #742EA1 |
|---|---|
| RGB | rgb(116, 46, 161) |
| HSL | hsl(277, 56%, 41%) |
| HSV | hsv(277, 71%, 63%) |
| CMYK | cmyk(28%, 71.4%, 0%, 36.9%) |
| CIE-LAB | lab(34.48, 50.27, -49.36) |
| CIE-LCH | lch(34.48, 70.45, 315.52°) |
| OKLab | oklab(45.74% 0.1123 -0.1398) |
| OKLCH | oklch(45.74% 0.179 308.8) |
| XYZ | xyz(14.6112, 8.2405, 34.5322) |
| Luminance | 0.0824 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 2.85
Purple (survey)
#7E1E9C
ΔE00 3.11
Darkmagenta
#8B008B
ΔE00 7.61
Darkviolet
#9400D3
ΔE00 8.06
Purple
#800080
ΔE00 8.25
Purple Blue
#5D21D0
ΔE00 8.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#742EA1 #5BA12E
analogous
#3A2EA1 #742EA1 #A12E94
triadic
#742EA1 #A1742E #2EA174
tetradic
#742EA1 #A13A2E #5BA12E #2E94A1
square
#742EA1 #A13A2E #5BA12E #2E94A1
split-complementary
#742EA1 #94A12E #2EA13A
monochromatic
#2F1342 #522071 #742EA1 #9543C9 #B073D7
Accessibility & contrast
On white
7.93
#742EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.65
#742EA1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #742EA1
7.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##742EA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##742EA1 | 1.00 | 7.93 | 2.65 | 7.93 |
| #FFFFFF | 7.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004EA4
Deuteranopia (green-blind)
#13529F
Tritanopia (blue-blind)
#6D4864
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #742ea1; /* rgb */ color: rgb(116, 46, 161); /* oklch */ color: oklch(45.7% 0.179 308.8);
Tailwind
colors: {
custom: {
50: '#a06dbe',
500: '#742ea1',
950: '#000000',
},
}SCSS
$custom: #742ea1; $custom-light: #a06dbe; $custom-dark: #000000;
JSON
{
"hex": "#742ea1",
"rgb": {
"r": 116,
"g": 46,
"b": 161
},
"hsl": {
"h": 276.522,
"s": 55.556,
"l": 40.588
},
"oklch": {
"l": 0.45742,
"c": 0.17934,
"h": 308.8
},
"luminance": 0.0824
}Semantic roles & 50–950 ramp
primary
#742EA1
secondary
#8CBE6C
accent
#DF4984
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#0F0712
muted
#7F7A81