#A8229D#A8229D

#A8229D is a mid, highly saturated purple. Relative luminance 0.119; OKLCH L 52.0% C 0.210 H 331.9°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#A8229D
RGBrgb(168, 34, 157)
HSLhsl(305, 66%, 40%)
HSVhsv(305, 80%, 66%)
CMYKcmyk(0%, 79.8%, 6.5%, 34.1%)
CIE-LABlab(41.06, 64.73, -35.94)
CIE-LCHlch(41.06, 74.04, 330.96°)
OKLaboklab(52% 0.1857 -0.099)
OKLCHoklch(52% 0.21 331.9)
XYZxyz(22.8063, 11.9051, 32.9885)
Luminance0.1190 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8229D #22A82D
analogous
#7022A8 #A8229D #A8225A
triadic
#A8229D #9DA822 #229DA8
tetradic
#A8229D #A87022 #22A82D #225AA8
square
#A8229D #A87022 #22A82D #225AA8
split-complementary
#A8229D #5AA822 #22A870
monochromatic
#420D3E #75186D #A8229D #D532C8 #E065D6

Accessibility & contrast

On white

6.21
#A8229D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#A8229D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A8229D
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8229D#FFFFFF#000000##FFFFFF
##A8229D1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1555A0
Deuteranopia (green-blind)
#50679A
Tritanopia (blue-blind)
#AF345F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a8229d;
/* rgb */ color: rgb(168, 34, 157);
/* oklch */ color: oklch(52.0% 0.210 331.9);
Tailwind
colors: {
  custom: {
    50: '#c66eba',
    500: '#a8229d',
    950: '#000000',
  },
}
SCSS
$custom: #a8229d;
$custom-light: #c66eba;
$custom-dark: #000000;
JSON
{
  "hex": "#a8229d",
  "rgb": {
    "r": 168,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 304.925,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.51996,
    "c": 0.21045,
    "h": 331.9
  },
  "luminance": 0.11903
}

Semantic roles & 50–950 ramp

primary
#A8229D
secondary
#61C569
accent
#E94D3F
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A8229D

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

Preview Lab → · Contrast checker → · Palette generator →

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