#A5229D#A5229D

#A5229D is a mid, highly saturated purple. Relative luminance 0.116; OKLCH L 51.5% C 0.209 H 330.9°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#A5229D
RGBrgb(165, 34, 157)
HSLhsl(304, 66%, 39%)
HSVhsv(304, 79%, 65%)
CMYKcmyk(0%, 79.4%, 4.8%, 35.3%)
CIE-LABlab(40.54, 64.10, -36.80)
CIE-LCHlch(40.54, 73.92, 330.14°)
OKLaboklab(51.52% 0.1827 -0.1016)
OKLCHoklch(51.52% 0.209 330.9)
XYZxyz(22.1749, 11.5795, 32.9589)
Luminance0.1158 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5229D #22A52A
analogous
#6C22A5 #A5229D #A5225C
triadic
#A5229D #9DA522 #229DA5
tetradic
#A5229D #A56C22 #22A52A #225CA5
square
#A5229D #A56C22 #22A52A #225CA5
split-complementary
#A5229D #5CA522 #22A56C
monochromatic
#400D3C #72186D #A5229D #D430CA #DF63D7

Accessibility & contrast

On white

6.33
#A5229D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#A5229D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A5229D
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5229D#FFFFFF#000000##FFFFFF
##A5229D1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1054A0
Deuteranopia (green-blind)
#4D669A
Tritanopia (blue-blind)
#AC355F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a5229d;
/* rgb */ color: rgb(165, 34, 157);
/* oklch */ color: oklch(51.5% 0.209 330.9);
Tailwind
colors: {
  custom: {
    50: '#c46eba',
    500: '#a5229d',
    950: '#000000',
  },
}
SCSS
$custom: #a5229d;
$custom-light: #c46eba;
$custom-dark: #000000;
JSON
{
  "hex": "#a5229d",
  "rgb": {
    "r": 165,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 303.664,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.51522,
    "c": 0.20901,
    "h": 330.9
  },
  "luminance": 0.11578
}

Semantic roles & 50–950 ramp

primary
#A5229D
secondary
#5FC465
accent
#E9493F
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A5229D

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

Preview Lab → · Contrast checker → · Palette generator →

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