#A5229E#A5229E

#A5229E is a mid, highly saturated purple. Relative luminance 0.116; OKLCH L 51.6% C 0.210 H 330.6°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#A5229E
RGBrgb(165, 34, 158)
HSLhsl(303, 66%, 39%)
HSVhsv(303, 79%, 65%)
CMYKcmyk(0%, 79.4%, 4.2%, 35.3%)
CIE-LABlab(40.60, 64.26, -37.32)
CIE-LCHlch(40.60, 74.31, 329.85°)
OKLaboklab(51.58% 0.1827 -0.1031)
OKLCHoklch(51.58% 0.21 330.6)
XYZxyz(22.2606, 11.6138, 33.4104)
Luminance0.1161 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5229E #22A529
analogous
#6B22A5 #A5229E #A5225D
triadic
#A5229E #9EA522 #229EA5
tetradic
#A5229E #A56B22 #22A529 #225DA5
square
#A5229E #A56B22 #22A529 #225DA5
split-complementary
#A5229E #5DA522 #22A56B
monochromatic
#400D3D #72186D #A5229E #D430CC #DF63D8

Accessibility & contrast

On white

6.32
#A5229E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A5229E
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5229E#FFFFFF#000000##FFFFFF
##A5229E1.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D54A1
Deuteranopia (green-blind)
#4D669B
Tritanopia (blue-blind)
#AC3560
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a5229e;
/* rgb */ color: rgb(165, 34, 158);
/* oklch */ color: oklch(51.6% 0.210 330.6);
Tailwind
colors: {
  custom: {
    50: '#c46ebb',
    500: '#a5229e',
    950: '#000000',
  },
}
SCSS
$custom: #a5229e;
$custom-light: #c46ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#a5229e",
  "rgb": {
    "r": 165,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 303.206,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.5158,
    "c": 0.20973,
    "h": 330.6
  },
  "luminance": 0.11612
}

Semantic roles & 50–950 ramp

primary
#A5229E
secondary
#5FC464
accent
#E9483F
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A5229E

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

Preview Lab → · Contrast checker → · Palette generator →

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