#A8229C#A8229C

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

Color values

HEX#A8229C
RGBrgb(168, 34, 156)
HSLhsl(305, 66%, 40%)
HSVhsv(305, 80%, 66%)
CMYKcmyk(0%, 79.8%, 7.1%, 34.1%)
CIE-LABlab(41.01, 64.58, -35.42)
CIE-LCHlch(41.01, 73.66, 331.25°)
OKLaboklab(51.94% 0.1857 -0.0975)
OKLCHoklch(51.94% 0.21 332.3)
XYZxyz(22.7213, 11.8711, 32.5407)
Luminance0.1187 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8229C #22A82E
analogous
#7122A8 #A8229C #A82259
triadic
#A8229C #9CA822 #229CA8
tetradic
#A8229C #A87122 #22A82E #2259A8
square
#A8229C #A87122 #22A82E #2259A8
split-complementary
#A8229C #59A822 #22A871
monochromatic
#420D3D #75186D #A8229C #D532C7 #E065D5

Accessibility & contrast

On white

6.22
#A8229C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#A8229C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A8229C
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8229C#FFFFFF#000000##FFFFFF
##A8229C1.006.223.376.22
#FFFFFF6.221.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17559F
Deuteranopia (green-blind)
#516799
Tritanopia (blue-blind)
#AF335F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a8229c;
/* rgb */ color: rgb(168, 34, 156);
/* oklch */ color: oklch(51.9% 0.210 332.3);
Tailwind
colors: {
  custom: {
    50: '#c66eb9',
    500: '#a8229c',
    950: '#000000',
  },
}
SCSS
$custom: #a8229c;
$custom-light: #c66eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#a8229c",
  "rgb": {
    "r": 168,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 305.373,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.51939,
    "c": 0.20974,
    "h": 332.3
  },
  "luminance": 0.11869
}

Semantic roles & 50–950 ramp

primary
#A8229C
secondary
#61C56A
accent
#E94E3F
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A8229C

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

Preview Lab → · Contrast checker → · Palette generator →

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