#A52F97#A52F97

#A52F97 is a mid, vivid purple. Relative luminance 0.123; OKLCH L 52.2% C 0.191 H 333.2°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#A52F97
RGBrgb(165, 47, 151)
HSLhsl(307, 56%, 42%)
HSVhsv(307, 72%, 65%)
CMYKcmyk(0%, 71.5%, 8.5%, 35.3%)
CIE-LABlab(41.64, 59.10, -31.45)
CIE-LCHlch(41.64, 66.95, 331.98°)
OKLaboklab(52.21% 0.1706 -0.0862)
OKLCHoklch(52.21% 0.191 333.2)
XYZxyz(22.1196, 12.2686, 30.4752)
Luminance0.1227 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A52F97 #2FA53D
analogous
#782FA5 #A52F97 #A52F5C
triadic
#A52F97 #97A52F #2F97A5
tetradic
#A52F97 #A5782F #2FA53D #2F5CA5
square
#A52F97 #A5782F #2FA53D #2F5CA5
split-complementary
#A52F97 #5CA52F #2FA578
monochromatic
#461440 #75216B #A52F97 #CB47BB #D876CC

Accessibility & contrast

On white

6.08
#A52F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#A52F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A52F97
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A52F97#FFFFFF#000000##FFFFFF
##A52F971.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B579A
Deuteranopia (green-blind)
#566894
Tritanopia (blue-blind)
#AC3A5F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #a52f97;
/* rgb */ color: rgb(165, 47, 151);
/* oklch */ color: oklch(52.2% 0.191 333.2);
Tailwind
colors: {
  custom: {
    50: '#c373b6',
    500: '#a52f97',
    950: '#000000',
  },
}
SCSS
$custom: #a52f97;
$custom-light: #c373b6;
$custom-dark: #000000;
JSON
{
  "hex": "#a52f97",
  "rgb": {
    "r": 165,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 307.119,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.52208,
    "c": 0.19117,
    "h": 333.2
  },
  "luminance": 0.12267
}

Semantic roles & 50–950 ramp

primary
#A52F97
secondary
#70C079
accent
#DF5B49
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130911
muted
#827B80

Preview Lab

Preview with #A52F97

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

Preview Lab → · Contrast checker → · Palette generator →

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