#A8229F#A8229F

#A8229F is a mid, highly saturated purple. Relative luminance 0.120; OKLCH L 52.1% C 0.212 H 331.2°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#A8229F
RGBrgb(168, 34, 159)
HSLhsl(304, 66%, 40%)
HSVhsv(304, 80%, 66%)
CMYKcmyk(0%, 79.8%, 5.4%, 34.1%)
CIE-LABlab(41.17, 65.04, -36.97)
CIE-LCHlch(41.17, 74.81, 330.38°)
OKLaboklab(52.11% 0.1857 -0.102)
OKLCHoklch(52.11% 0.212 331.2)
XYZxyz(22.9785, 11.9740, 33.8952)
Luminance0.1197 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8229F #22A82B
analogous
#6E22A8 #A8229F #A8225C
triadic
#A8229F #9FA822 #229FA8
tetradic
#A8229F #A86E22 #22A82B #225CA8
square
#A8229F #A86E22 #22A82B #225CA8
split-complementary
#A8229F #5CA822 #22A86E
monochromatic
#420D3F #75186F #A8229F #D532CA #E065D7

Accessibility & contrast

On white

6.19
#A8229F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A8229F
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8229F#FFFFFF#000000##FFFFFF
##A8229F1.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1155A2
Deuteranopia (green-blind)
#4F679C
Tritanopia (blue-blind)
#AF3561
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a8229f;
/* rgb */ color: rgb(168, 34, 159);
/* oklch */ color: oklch(52.1% 0.212 331.2);
Tailwind
colors: {
  custom: {
    50: '#c66ebc',
    500: '#a8229f',
    950: '#000000',
  },
}
SCSS
$custom: #a8229f;
$custom-light: #c66ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#a8229f",
  "rgb": {
    "r": 168,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 304.03,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.5211,
    "c": 0.21188,
    "h": 331.2
  },
  "luminance": 0.11972
}

Semantic roles & 50–950 ramp

primary
#A8229F
secondary
#61C567
accent
#E94A3F
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A8229F

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

Preview Lab → · Contrast checker → · Palette generator →

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