#A52791#A52791

#A52791 is a mid, vivid purple. Relative luminance 0.115; OKLCH L 51.2% C 0.196 H 335.5°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#A52791
RGBrgb(165, 39, 145)
HSLhsl(310, 62%, 40%)
HSVhsv(310, 76%, 65%)
CMYKcmyk(0%, 76.4%, 12.1%, 35.3%)
CIE-LABlab(40.40, 60.84, -29.75)
CIE-LCHlch(40.40, 67.72, 333.94°)
OKLaboklab(51.22% 0.178 -0.0813)
OKLCHoklch(51.22% 0.196 335.5)
XYZxyz(21.3537, 11.4966, 27.8770)
Luminance0.1149 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A52791 #27A53B
analogous
#7A27A5 #A52791 #A52752
triadic
#A52791 #91A527 #2791A5
tetradic
#A52791 #A57A27 #27A53B #2752A5
square
#A52791 #A57A27 #27A53B #2752A5
split-complementary
#A52791 #52A527 #27A57A
monochromatic
#42103A #741B65 #A52791 #D039B8 #DC6ACA

Accessibility & contrast

On white

6.37
#A52791 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#A52791 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A52791
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A52791#FFFFFF#000000##FFFFFF
##A527911.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275394
Deuteranopia (green-blind)
#55668E
Tritanopia (blue-blind)
#AD315A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a52791;
/* rgb */ color: rgb(165, 39, 145);
/* oklch */ color: oklch(51.2% 0.196 335.5);
Tailwind
colors: {
  custom: {
    50: '#c36fb1',
    500: '#a52791',
    950: '#000000',
  },
}
SCSS
$custom: #a52791;
$custom-light: #c36fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#a52791",
  "rgb": {
    "r": 165,
    "g": 39,
    "b": 145
  },
  "hsl": {
    "h": 309.524,
    "s": 61.765,
    "l": 40
  },
  "oklch": {
    "l": 0.5122,
    "c": 0.19565,
    "h": 335.5
  },
  "luminance": 0.11495
}

Semantic roles & 50–950 ramp

primary
#A52791
secondary
#66C274
accent
#E55D43
background
#FCF7FA
surface
#F8EDF5
border
#D1C8CF
text
#130811
muted
#827B80

Preview Lab

Preview with #A52791

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

Preview Lab → · Contrast checker → · Palette generator →

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