#A5229F#A5229F

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

Color values

HEX#A5229F
RGBrgb(165, 34, 159)
HSLhsl(303, 66%, 39%)
HSVhsv(303, 79%, 65%)
CMYKcmyk(0%, 79.4%, 3.6%, 35.3%)
CIE-LABlab(40.65, 64.41, -37.83)
CIE-LCHlch(40.65, 74.70, 329.57°)
OKLaboklab(51.64% 0.1827 -0.1046)
OKLCHoklch(51.64% 0.21 330.2)
XYZxyz(22.3470, 11.6484, 33.8656)
Luminance0.1165 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5229F #22A528
analogous
#6A22A5 #A5229F #A5225E
triadic
#A5229F #9FA522 #229FA5
tetradic
#A5229F #A56A22 #22A528 #225EA5
square
#A5229F #A56A22 #22A528 #225EA5
split-complementary
#A5229F #5EA522 #22A56A
monochromatic
#400D3D #72186E #A5229F #D430CD #DF63D9

Accessibility & contrast

On white

6.31
#A5229F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#A5229F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A5229F
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5229F#FFFFFF#000000##FFFFFF
##A5229F1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A55A2
Deuteranopia (green-blind)
#4C669C
Tritanopia (blue-blind)
#AB3660
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a5229f;
/* rgb */ color: rgb(165, 34, 159);
/* oklch */ color: oklch(51.6% 0.210 330.2);
Tailwind
colors: {
  custom: {
    50: '#c46ebc',
    500: '#a5229f',
    950: '#000000',
  },
}
SCSS
$custom: #a5229f;
$custom-light: #c46ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#a5229f",
  "rgb": {
    "r": 165,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 302.748,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.51638,
    "c": 0.21047,
    "h": 330.2
  },
  "luminance": 0.11647
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A5229F

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

Preview Lab → · Contrast checker → · Palette generator →

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