#A5229C#A5229C

#A5229C is a mid, highly saturated purple. Relative luminance 0.115; OKLCH L 51.5% C 0.208 H 331.3°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#A5229C
RGBrgb(165, 34, 156)
HSLhsl(304, 66%, 39%)
HSVhsv(304, 79%, 65%)
CMYKcmyk(0%, 79.4%, 5.5%, 35.3%)
CIE-LABlab(40.48, 63.94, -36.29)
CIE-LCHlch(40.48, 73.52, 330.42°)
OKLaboklab(51.47% 0.1827 -0.1001)
OKLCHoklch(51.47% 0.208 331.3)
XYZxyz(22.0898, 11.5455, 32.5111)
Luminance0.1154 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5229C #22A52B
analogous
#6D22A5 #A5229C #A5225B
triadic
#A5229C #9CA522 #229CA5
tetradic
#A5229C #A56D22 #22A52B #225BA5
square
#A5229C #A56D22 #22A52B #225BA5
split-complementary
#A5229C #5BA522 #22A56D
monochromatic
#400D3C #72186C #A5229C #D430C9 #DF63D6

Accessibility & contrast

On white

6.35
#A5229C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#A5229C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A5229C
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5229C#FFFFFF#000000##FFFFFF
##A5229C1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12549F
Deuteranopia (green-blind)
#4E6699
Tritanopia (blue-blind)
#AC345F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a5229c;
/* rgb */ color: rgb(165, 34, 156);
/* oklch */ color: oklch(51.5% 0.208 331.3);
Tailwind
colors: {
  custom: {
    50: '#c46eba',
    500: '#a5229c',
    950: '#000000',
  },
}
SCSS
$custom: #a5229c;
$custom-light: #c46eba;
$custom-dark: #000000;
JSON
{
  "hex": "#a5229c",
  "rgb": {
    "r": 165,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 304.122,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.51465,
    "c": 0.20829,
    "h": 331.3
  },
  "luminance": 0.11544
}

Semantic roles & 50–950 ramp

primary
#A5229C
secondary
#5FC466
accent
#E94B3F
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A5229C

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

Preview Lab → · Contrast checker → · Palette generator →

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