#A52F9E#A52F9E

#A52F9E is a mid, vivid purple. Relative luminance 0.125; OKLCH L 52.6% C 0.196 H 330.5°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#A52F9E
RGBrgb(165, 47, 158)
HSLhsl(304, 56%, 42%)
HSVhsv(304, 72%, 65%)
CMYKcmyk(0%, 71.5%, 4.2%, 35.3%)
CIE-LABlab(42.00, 60.22, -35.09)
CIE-LCHlch(42.00, 69.70, 329.77°)
OKLaboklab(52.59% 0.171 -0.0967)
OKLCHoklch(52.59% 0.196 330.5)
XYZxyz(22.7050, 12.5027, 33.5585)
Luminance0.1250 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A52F9E #2FA536
analogous
#712FA5 #A52F9E #A52F63
triadic
#A52F9E #9EA52F #2F9EA5
tetradic
#A52F9E #A5712F #2FA536 #2F63A5
square
#A52F9E #A5712F #2FA536 #2F63A5
split-complementary
#A52F9E #63A52F #2FA571
monochromatic
#461443 #752170 #A52F9E #CB47C3 #D876D2

Accessibility & contrast

On white

6.00
#A52F9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#A52F9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A52F9E
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A52F9E#FFFFFF#000000##FFFFFF
##A52F9E1.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2359A1
Deuteranopia (green-blind)
#52699B
Tritanopia (blue-blind)
#AB3E63
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a52f9e;
/* rgb */ color: rgb(165, 47, 158);
/* oklch */ color: oklch(52.6% 0.196 330.5);
Tailwind
colors: {
  custom: {
    50: '#c373bb',
    500: '#a52f9e',
    950: '#000000',
  },
}
SCSS
$custom: #a52f9e;
$custom-light: #c373bb;
$custom-dark: #000000;
JSON
{
  "hex": "#a52f9e",
  "rgb": {
    "r": 165,
    "g": 47,
    "b": 158
  },
  "hsl": {
    "h": 303.559,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.52589,
    "c": 0.19649,
    "h": 330.5
  },
  "luminance": 0.12501
}

Semantic roles & 50–950 ramp

primary
#A52F9E
secondary
#70C074
accent
#DF5249
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A52F9E

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#A52F9E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva