#A5229B#A5229B

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

Color values

HEX#A5229B
RGBrgb(165, 34, 155)
HSLhsl(305, 66%, 39%)
HSVhsv(305, 79%, 65%)
CMYKcmyk(0%, 79.4%, 6.1%, 35.3%)
CIE-LABlab(40.43, 63.79, -35.77)
CIE-LCHlch(40.43, 73.14, 330.72°)
OKLaboklab(51.41% 0.1827 -0.0986)
OKLCHoklch(51.41% 0.208 331.6)
XYZxyz(22.0055, 11.5118, 32.0670)
Luminance0.1151 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5229B #22A52C
analogous
#6E22A5 #A5229B #A5225A
triadic
#A5229B #9BA522 #229BA5
tetradic
#A5229B #A56E22 #22A52C #225AA5
square
#A5229B #A56E22 #22A52C #225AA5
split-complementary
#A5229B #5AA522 #22A56E
monochromatic
#400D3C #72186B #A5229B #D430C8 #DF63D5

Accessibility & contrast

On white

6.36
#A5229B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A5229B
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5229B#FFFFFF#000000##FFFFFF
##A5229B1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14549E
Deuteranopia (green-blind)
#4F6698
Tritanopia (blue-blind)
#AC345E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a5229b;
/* rgb */ color: rgb(165, 34, 155);
/* oklch */ color: oklch(51.4% 0.208 331.6);
Tailwind
colors: {
  custom: {
    50: '#c46eb9',
    500: '#a5229b',
    950: '#000000',
  },
}
SCSS
$custom: #a5229b;
$custom-light: #c46eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#a5229b",
  "rgb": {
    "r": 165,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 304.58,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.51408,
    "c": 0.20756,
    "h": 331.6
  },
  "luminance": 0.1151
}

Semantic roles & 50–950 ramp

primary
#A5229B
secondary
#5FC467
accent
#E94C3F
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A5229B

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

Preview Lab → · Contrast checker → · Palette generator →

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