#A242B2#A242B2
#A242B2 is a mid, vivid purple. Relative luminance 0.148; OKLCH L 55.3% C 0.187 H 321.7°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).
Color values
| HEX | #A242B2 |
|---|---|
| RGB | rgb(162, 66, 178) |
| HSL | hsl(291, 46%, 48%) |
| HSV | hsv(291, 63%, 70%) |
| CMYK | cmyk(9%, 62.9%, 0%, 30.2%) |
| CIE-LAB | lab(45.35, 55.42, -41.70) |
| CIE-LCH | lch(45.35, 69.36, 323.04°) |
| OKLab | oklab(55.26% 0.147 -0.1161) |
| OKLCH | oklch(55.26% 0.187 321.7) |
| XYZ | xyz(24.8835, 14.7934, 43.6556) |
| Luminance | 0.1479 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 2.36
Medium Purple
#9E43A2
ΔE00 2.88
Ugly Purple
#A442A0
ΔE00 3.65
Barney
#AC1DB8
ΔE00 4.57
Darkorchid
#9932CC
ΔE00 5.94
Purpley Pink
#C83CB9
ΔE00 7.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A242B2 #52B242
analogous
#6A42B2 #A242B2 #B2428A
triadic
#A242B2 #B2A242 #42B2A2
tetradic
#A242B2 #B26A42 #52B242 #428AB2
square
#A242B2 #B26A42 #52B242 #428AB2
split-complementary
#A242B2 #8AB242 #42B26A
monochromatic
#512159 #793185 #A242B2 #BA6AC8 #CF96D8
Accessibility & contrast
On white
5.31
#A242B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.96
#A242B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A242B2
5.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A242B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A242B2 | 1.00 | 5.31 | 3.96 | 5.31 |
| #FFFFFF | 5.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2864B5
Deuteranopia (green-blind)
#4F6FAF
Tritanopia (blue-blind)
#A45474
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #a242b2; /* rgb */ color: rgb(162, 66, 178); /* oklch */ color: oklch(55.3% 0.187 321.7);
Tailwind
colors: {
custom: {
50: '#c07dc9',
500: '#a242b2',
950: '#000000',
},
}SCSS
$custom: #a242b2; $custom-light: #c07dc9; $custom-dark: #000000;
JSON
{
"hex": "#a242b2",
"rgb": {
"r": 162,
"g": 66,
"b": 178
},
"hsl": {
"h": 291.429,
"s": 45.902,
"l": 47.843
},
"oklch": {
"l": 0.55263,
"c": 0.18733,
"h": 321.7
},
"luminance": 0.14792
}Semantic roles & 50–950 ramp
primary
#A242B2
secondary
#94C48C
accent
#D65265
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82