#A8229A#A8229A

#A8229A is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 51.8% C 0.208 H 333.0°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#A8229A
RGBrgb(168, 34, 154)
HSLhsl(306, 66%, 40%)
HSVhsv(306, 80%, 66%)
CMYKcmyk(0%, 79.8%, 8.3%, 34.1%)
CIE-LABlab(40.90, 64.28, -34.39)
CIE-LCHlch(40.90, 72.90, 331.86°)
OKLaboklab(51.83% 0.1857 -0.0945)
OKLCHoklch(51.83% 0.208 333)
XYZxyz(22.5534, 11.8039, 31.6562)
Luminance0.1180 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8229A #22A830
analogous
#7322A8 #A8229A #A82257
triadic
#A8229A #9AA822 #229AA8
tetradic
#A8229A #A87322 #22A830 #2257A8
square
#A8229A #A87322 #22A830 #2257A8
split-complementary
#A8229A #57A822 #22A873
monochromatic
#420D3D #75186B #A8229A #D532C4 #E065D3

Accessibility & contrast

On white

6.25
#A8229A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#A8229A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A8229A
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8229A#FFFFFF#000000##FFFFFF
##A8229A1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A549D
Deuteranopia (green-blind)
#526797
Tritanopia (blue-blind)
#B0325E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a8229a;
/* rgb */ color: rgb(168, 34, 154);
/* oklch */ color: oklch(51.8% 0.208 333.0);
Tailwind
colors: {
  custom: {
    50: '#c66eb8',
    500: '#a8229a',
    950: '#000000',
  },
}
SCSS
$custom: #a8229a;
$custom-light: #c66eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#a8229a",
  "rgb": {
    "r": 168,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 306.269,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.51828,
    "c": 0.20833,
    "h": 333
  },
  "luminance": 0.11802
}

Semantic roles & 50–950 ramp

primary
#A8229A
secondary
#61C56B
accent
#E9503F
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A8229A

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

Preview Lab → · Contrast checker → · Palette generator →

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