#A52F98#A52F98

#A52F98 is a mid, vivid purple. Relative luminance 0.123; OKLCH L 52.3% C 0.192 H 332.8°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#A52F98
RGBrgb(165, 47, 152)
HSLhsl(307, 56%, 42%)
HSVhsv(307, 72%, 65%)
CMYKcmyk(0%, 71.5%, 7.9%, 35.3%)
CIE-LABlab(41.69, 59.26, -31.97)
CIE-LCHlch(41.69, 67.33, 331.65°)
OKLaboklab(52.26% 0.1707 -0.0877)
OKLCHoklch(52.26% 0.192 332.8)
XYZxyz(22.2012, 12.3012, 30.9048)
Luminance0.1230 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A52F98 #2FA53C
analogous
#772FA5 #A52F98 #A52F5D
triadic
#A52F98 #98A52F #2F98A5
tetradic
#A52F98 #A5772F #2FA53C #2F5DA5
square
#A52F98 #A5772F #2FA53C #2F5DA5
split-complementary
#A52F98 #5DA52F #2FA577
monochromatic
#461440 #75216C #A52F98 #CB47BC #D876CD

Accessibility & contrast

On white

6.07
#A52F98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#A52F98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A52F98
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A52F98#FFFFFF#000000##FFFFFF
##A52F981.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A589B
Deuteranopia (green-blind)
#556895
Tritanopia (blue-blind)
#AC3B60
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #a52f98;
/* rgb */ color: rgb(165, 47, 152);
/* oklch */ color: oklch(52.3% 0.192 332.8);
Tailwind
colors: {
  custom: {
    50: '#c373b6',
    500: '#a52f98',
    950: '#000000',
  },
}
SCSS
$custom: #a52f98;
$custom-light: #c373b6;
$custom-dark: #000000;
JSON
{
  "hex": "#a52f98",
  "rgb": {
    "r": 165,
    "g": 47,
    "b": 152
  },
  "hsl": {
    "h": 306.61,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.52261,
    "c": 0.19192,
    "h": 332.8
  },
  "luminance": 0.12299
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A52F98

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

Preview Lab → · Contrast checker → · Palette generator →

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