#742CA1#742CA1
#742CA1 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.5% C 0.182 H 309.0°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).
Color values
| HEX | #742CA1 |
|---|---|
| RGB | rgb(116, 44, 161) |
| HSL | hsl(277, 57%, 40%) |
| HSV | hsv(277, 73%, 63%) |
| CMYK | cmyk(28%, 72.7%, 0%, 36.9%) |
| CIE-LAB | lab(34.17, 51.15, -49.87) |
| CIE-LCH | lch(34.17, 71.44, 315.73°) |
| OKLab | oklab(45.52% 0.1144 -0.1413) |
| OKLCH | oklch(45.52% 0.182 309) |
| XYZ | xyz(14.5349, 8.0878, 34.5067) |
| Luminance | 0.0809 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.88
Rebeccapurple
#663399
ΔE00 2.97
Darkmagenta
#8B008B
ΔE00 7.45
Darkviolet
#9400D3
ΔE00 8.00
Purple
#800080
ΔE00 8.06
Purple Blue
#5D21D0
ΔE00 8.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#742CA1 #59A12C
analogous
#392CA1 #742CA1 #A12C93
triadic
#742CA1 #A1742C #2CA174
tetradic
#742CA1 #A1392C #59A12C #2C93A1
square
#742CA1 #A1392C #59A12C #2C93A1
split-complementary
#742CA1 #93A12C #2CA139
monochromatic
#2F1241 #511F71 #742CA1 #9540CB #B070D8
Accessibility & contrast
On white
8.02
#742CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.62
#742CA1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #742CA1
8.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##742CA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##742CA1 | 1.00 | 8.02 | 2.62 | 8.02 |
| #FFFFFF | 8.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004DA4
Deuteranopia (green-blind)
#0E519F
Tritanopia (blue-blind)
#6D4764
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #742ca1; /* rgb */ color: rgb(116, 44, 161); /* oklch */ color: oklch(45.5% 0.182 309.0);
Tailwind
colors: {
custom: {
50: '#a06cbe',
500: '#742ca1',
950: '#000000',
},
}SCSS
$custom: #742ca1; $custom-light: #a06cbe; $custom-dark: #000000;
JSON
{
"hex": "#742ca1",
"rgb": {
"r": 116,
"g": 44,
"b": 161
},
"hsl": {
"h": 276.923,
"s": 57.073,
"l": 40.196
},
"oklch": {
"l": 0.45519,
"c": 0.18181,
"h": 309
},
"luminance": 0.08088
}Semantic roles & 50–950 ramp
primary
#742CA1
secondary
#8BBF6A
accent
#E04782
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#0F0712
muted
#7F7A81