#A6229D#A6229D

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

Color values

HEX#A6229D
RGBrgb(166, 34, 157)
HSLhsl(304, 66%, 39%)
HSVhsv(304, 80%, 65%)
CMYKcmyk(0%, 79.5%, 5.4%, 34.9%)
CIE-LABlab(40.71, 64.31, -36.52)
CIE-LCHlch(40.71, 73.95, 330.41°)
OKLaboklab(51.68% 0.1837 -0.1007)
OKLCHoklch(51.68% 0.209 331.3)
XYZxyz(22.3837, 11.6872, 32.9687)
Luminance0.1168 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6229D #22A62B
analogous
#6D22A6 #A6229D #A6225B
triadic
#A6229D #9DA622 #229DA6
tetradic
#A6229D #A66D22 #22A62B #225BA6
square
#A6229D #A66D22 #22A62B #225BA6
split-complementary
#A6229D #5BA622 #22A66D
monochromatic
#400D3D #73186D #A6229D #D530CA #DF63D7

Accessibility & contrast

On white

6.29
#A6229D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A6229D
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6229D#FFFFFF#000000##FFFFFF
##A6229D1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1254A0
Deuteranopia (green-blind)
#4E669A
Tritanopia (blue-blind)
#AD345F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a6229d;
/* rgb */ color: rgb(166, 34, 157);
/* oklch */ color: oklch(51.7% 0.209 331.3);
Tailwind
colors: {
  custom: {
    50: '#c46eba',
    500: '#a6229d',
    950: '#000000',
  },
}
SCSS
$custom: #a6229d;
$custom-light: #c46eba;
$custom-dark: #000000;
JSON
{
  "hex": "#a6229d",
  "rgb": {
    "r": 166,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 304.091,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.5168,
    "c": 0.20949,
    "h": 331.3
  },
  "luminance": 0.11685
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A6229D

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

Preview Lab → · Contrast checker → · Palette generator →

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