#A742BA#A742BA
#A742BA is a mid, vivid purple. Relative luminance 0.157; OKLCH L 56.4% C 0.197 H 321.0°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).
Color values
| HEX | #A742BA |
|---|---|
| RGB | rgb(167, 66, 186) |
| HSL | hsl(291, 48%, 49%) |
| HSV | hsv(291, 65%, 73%) |
| CMYK | cmyk(10.2%, 64.5%, 0%, 27.1%) |
| CIE-LAB | lab(46.52, 58.16, -44.48) |
| CIE-LCH | lch(46.52, 73.21, 322.59°) |
| OKLab | oklab(56.41% 0.1531 -0.1241) |
| OKLCH | oklch(56.41% 0.197 321) |
| XYZ | xyz(26.7465, 15.6584, 48.0584) |
| Luminance | 0.1566 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 3.24
Medium Purple
#9E43A2
ΔE00 4.23
Barney
#AC1DB8
ΔE00 4.70
Ugly Purple
#A442A0
ΔE00 4.72
Darkorchid
#9932CC
ΔE00 5.66
Purpley Pink
#C83CB9
ΔE00 6.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A742BA #55BA42
analogous
#6B42BA #A742BA #BA4291
triadic
#A742BA #BAA742 #42BAA7
tetradic
#A742BA #BA6B42 #55BA42 #4291BA
square
#A742BA #BA6B42 #55BA42 #4291BA
split-complementary
#A742BA #91BA42 #42BA6B
monochromatic
#562260 #7E328D #A742BA #BD6ECB #D19BDB
Accessibility & contrast
On white
5.08
#A742BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.13
#A742BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A742BA
5.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A742BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A742BA | 1.00 | 5.08 | 4.13 | 5.08 |
| #FFFFFF | 5.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2167BE
Deuteranopia (green-blind)
#4E72B7
Tritanopia (blue-blind)
#A85678
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #a742ba; /* rgb */ color: rgb(167, 66, 186); /* oklch */ color: oklch(56.4% 0.197 321.0);
Tailwind
colors: {
custom: {
50: '#c47dcf',
500: '#a742ba',
950: '#000000',
},
}SCSS
$custom: #a742ba; $custom-light: #c47dcf; $custom-dark: #000000;
JSON
{
"hex": "#a742ba",
"rgb": {
"r": 167,
"g": 66,
"b": 186
},
"hsl": {
"h": 290.5,
"s": 47.619,
"l": 49.412
},
"oklch": {
"l": 0.56405,
"c": 0.19703,
"h": 321
},
"luminance": 0.15657
}Semantic roles & 50–950 ramp
primary
#A742BA
secondary
#99C890
accent
#D75166
background
#FCF8FC
surface
#F8EFF9
border
#D1CAD2
text
#130A14
muted
#827C82