#A751B2#A751B2
#A751B2 is a mid, vivid purple. Relative luminance 0.173; OKLCH L 57.8% C 0.167 H 323.0°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).
Color values
| HEX | #A751B2 |
|---|---|
| RGB | rgb(167, 81, 178) |
| HSL | hsl(293, 39%, 51%) |
| HSV | hsv(293, 54%, 70%) |
| CMYK | cmyk(6.2%, 54.5%, 0%, 30.2%) |
| CIE-LAB | lab(48.66, 49.65, -36.43) |
| CIE-LCH | lch(48.66, 61.58, 323.73°) |
| OKLab | oklab(57.82% 0.1337 -0.1008) |
| OKLCH | oklch(57.82% 0.167 323) |
| XYZ | xyz(26.9139, 17.3160, 44.0355) |
| Luminance | 0.1731 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Medium Purple
#9E43A2
ΔE00 4.59
Ugly Purple
#A442A0
ΔE00 4.60
Amethyst
#9B5FC0
ΔE00 5.12
Purply
#983FB2
ΔE00 5.82
Purpley Pink
#C83CB9
ΔE00 5.98
Mediumorchid
#BA55D3
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A751B2 #5CB251
analogous
#7651B2 #A751B2 #B2518C
triadic
#A751B2 #B2A751 #51B2A7
tetradic
#A751B2 #B27651 #5CB251 #518CB2
square
#A751B2 #B27651 #5CB251 #518CB2
split-complementary
#A751B2 #8CB251 #51B276
monochromatic
#592A5F #803D89 #A751B2 #BC7BC5 #D2A6D8
Accessibility & contrast
On white
4.71
#A751B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.46
#A751B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A751B2
4.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A751B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A751B2 | 1.00 | 4.71 | 4.46 | 4.71 |
| #FFFFFF | 4.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#426DB5
Deuteranopia (green-blind)
#5E77AF
Tritanopia (blue-blind)
#A95E7A
Achromatopsia (no color)
#747474
Design tokens & code
CSS
--color: #a751b2; /* rgb */ color: rgb(167, 81, 178); /* oklch */ color: oklch(57.8% 0.167 323.0);
Tailwind
colors: {
custom: {
50: '#c386c9',
500: '#a751b2',
950: '#000000',
},
}SCSS
$custom: #a751b2; $custom-light: #c386c9; $custom-dark: #000000;
JSON
{
"hex": "#a751b2",
"rgb": {
"r": 167,
"g": 81,
"b": 178
},
"hsl": {
"h": 293.196,
"s": 38.645,
"l": 50.784
},
"oklch": {
"l": 0.5782,
"c": 0.1674,
"h": 323
},
"luminance": 0.17315
}Semantic roles & 50–950 ramp
primary
#A751B2
secondary
#9FC59A
accent
#CF5967
background
#FCF8FC
surface
#F8F0F8
border
#D1CBD1
text
#130B13
muted
#827C82