#A8229E#A8229E

#A8229E is a mid, highly saturated purple. Relative luminance 0.119; OKLCH L 52.1% C 0.211 H 331.6°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#A8229E
RGBrgb(168, 34, 158)
HSLhsl(304, 66%, 40%)
HSVhsv(304, 80%, 66%)
CMYKcmyk(0%, 79.8%, 6%, 34.1%)
CIE-LABlab(41.12, 64.88, -36.46)
CIE-LCHlch(41.12, 74.42, 330.67°)
OKLaboklab(52.05% 0.1857 -0.1005)
OKLCHoklch(52.05% 0.211 331.6)
XYZxyz(22.8921, 11.9394, 33.4400)
Luminance0.1194 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8229E #22A82C
analogous
#6F22A8 #A8229E #A8225B
triadic
#A8229E #9EA822 #229EA8
tetradic
#A8229E #A86F22 #22A82C #225BA8
square
#A8229E #A86F22 #22A82C #225BA8
split-complementary
#A8229E #5BA822 #22A86F
monochromatic
#420D3E #75186E #A8229E #D532C9 #E065D7

Accessibility & contrast

On white

6.20
#A8229E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#A8229E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A8229E
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8229E#FFFFFF#000000##FFFFFF
##A8229E1.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1355A1
Deuteranopia (green-blind)
#50679B
Tritanopia (blue-blind)
#AF3460
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a8229e;
/* rgb */ color: rgb(168, 34, 158);
/* oklch */ color: oklch(52.1% 0.211 331.6);
Tailwind
colors: {
  custom: {
    50: '#c66ebb',
    500: '#a8229e',
    950: '#000000',
  },
}
SCSS
$custom: #a8229e;
$custom-light: #c66ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#a8229e",
  "rgb": {
    "r": 168,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 304.478,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.52053,
    "c": 0.21117,
    "h": 331.6
  },
  "luminance": 0.11938
}

Semantic roles & 50–950 ramp

primary
#A8229E
secondary
#61C568
accent
#E94B3F
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A8229E

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

Preview Lab → · Contrast checker → · Palette generator →

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