#A6229E#A6229E

#A6229E is a mid, highly saturated purple. Relative luminance 0.117; OKLCH L 51.7% C 0.210 H 330.9°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#A6229E
RGBrgb(166, 34, 158)
HSLhsl(304, 66%, 39%)
HSVhsv(304, 80%, 65%)
CMYKcmyk(0%, 79.5%, 4.8%, 34.9%)
CIE-LABlab(40.77, 64.46, -37.03)
CIE-LCHlch(40.77, 74.34, 330.13°)
OKLaboklab(51.74% 0.1837 -0.1022)
OKLCHoklch(51.74% 0.21 330.9)
XYZxyz(22.4694, 11.7215, 33.4202)
Luminance0.1172 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6229E #22A62A
analogous
#6C22A6 #A6229E #A6225C
triadic
#A6229E #9EA622 #229EA6
tetradic
#A6229E #A66C22 #22A62A #225CA6
square
#A6229E #A66C22 #22A62A #225CA6
split-complementary
#A6229E #5CA622 #22A66C
monochromatic
#400D3D #73186E #A6229E #D530CB #DF63D8

Accessibility & contrast

On white

6.28
#A6229E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#A6229E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A6229E
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6229E#FFFFFF#000000##FFFFFF
##A6229E1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F55A1
Deuteranopia (green-blind)
#4E669B
Tritanopia (blue-blind)
#AD3560
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a6229e;
/* rgb */ color: rgb(166, 34, 158);
/* oklch */ color: oklch(51.7% 0.210 330.9);
Tailwind
colors: {
  custom: {
    50: '#c46ebb',
    500: '#a6229e',
    950: '#000000',
  },
}
SCSS
$custom: #a6229e;
$custom-light: #c46ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#a6229e",
  "rgb": {
    "r": 166,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 303.636,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.51737,
    "c": 0.21021,
    "h": 330.9
  },
  "luminance": 0.1172
}

Semantic roles & 50–950 ramp

primary
#A6229E
secondary
#5FC466
accent
#E9493F
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A6229E

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

Preview Lab → · Contrast checker → · Palette generator →

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