#A52D98#A52D98

#A52D98 is a mid, vivid purple. Relative luminance 0.121; OKLCH L 52.1% C 0.194 H 332.8°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#A52D98
RGBrgb(165, 45, 152)
HSLhsl(307, 57%, 41%)
HSVhsv(307, 73%, 65%)
CMYKcmyk(0%, 72.7%, 7.9%, 35.3%)
CIE-LABlab(41.45, 59.96, -32.36)
CIE-LCHlch(41.45, 68.13, 331.65°)
OKLaboklab(52.09% 0.1727 -0.0888)
OKLCHoklch(52.09% 0.194 332.8)
XYZxyz(22.1230, 12.1449, 30.8787)
Luminance0.1214 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A52D98 #2DA53A
analogous
#762DA5 #A52D98 #A52D5C
triadic
#A52D98 #98A52D #2D98A5
tetradic
#A52D98 #A5762D #2DA53A #2D5CA5
square
#A52D98 #A5762D #2DA53A #2D5CA5
split-complementary
#A52D98 #5CA52D #2DA576
monochromatic
#45133F #75206C #A52D98 #CC43BD #D973CE

Accessibility & contrast

On white

6.12
#A52D98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#A52D98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A52D98
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A52D98#FFFFFF#000000##FFFFFF
##A52D981.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27579B
Deuteranopia (green-blind)
#546895
Tritanopia (blue-blind)
#AC395F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #a52d98;
/* rgb */ color: rgb(165, 45, 152);
/* oklch */ color: oklch(52.1% 0.194 332.8);
Tailwind
colors: {
  custom: {
    50: '#c372b6',
    500: '#a52d98',
    950: '#000000',
  },
}
SCSS
$custom: #a52d98;
$custom-light: #c372b6;
$custom-dark: #000000;
JSON
{
  "hex": "#a52d98",
  "rgb": {
    "r": 165,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 306.5,
    "s": 57.143,
    "l": 41.176
  },
  "oklch": {
    "l": 0.52085,
    "c": 0.19422,
    "h": 332.8
  },
  "luminance": 0.12143
}

Semantic roles & 50–950 ramp

primary
#A52D98
secondary
#6DC176
accent
#E05847
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130911
muted
#827B80

Preview Lab

Preview with #A52D98

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

Preview Lab → · Contrast checker → · Palette generator →

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