#A6228E#A6228E

#A6228E is a mid, vivid pink. Relative luminance 0.112; OKLCH L 50.9% C 0.199 H 336.9°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#A6228E
RGBrgb(166, 34, 142)
HSLhsl(311, 66%, 39%)
HSVhsv(311, 80%, 65%)
CMYKcmyk(0%, 79.5%, 14.5%, 34.9%)
CIE-LABlab(39.93, 62.08, -28.66)
CIE-LCHlch(39.93, 68.37, 335.22°)
OKLaboklab(50.86% 0.183 -0.0781)
OKLCHoklch(50.86% 0.199 336.9)
XYZxyz(21.1808, 11.2061, 26.6334)
Luminance0.1120 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6228E #22A63A
analogous
#7C22A6 #A6228E #A6224C
triadic
#A6228E #8EA622 #228EA6
tetradic
#A6228E #A67C22 #22A63A #224CA6
square
#A6228E #A67C22 #22A63A #224CA6
split-complementary
#A6228E #4CA622 #22A67C
monochromatic
#400D37 #731863 #A6228E #D530B7 #DF63C9

Accessibility & contrast

On white

6.48
#A6228E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#A6228E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A6228E
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6228E#FFFFFF#000000##FFFFFF
##A6228E1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265191
Deuteranopia (green-blind)
#56658B
Tritanopia (blue-blind)
#AF2C57
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a6228e;
/* rgb */ color: rgb(166, 34, 142);
/* oklch */ color: oklch(50.9% 0.199 336.9);
Tailwind
colors: {
  custom: {
    50: '#c46daf',
    500: '#a6228e',
    950: '#000000',
  },
}
SCSS
$custom: #a6228e;
$custom-light: #c46daf;
$custom-dark: #000000;
JSON
{
  "hex": "#a6228e",
  "rgb": {
    "r": 166,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 310.909,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.5086,
    "c": 0.199,
    "h": 336.9
  },
  "luminance": 0.11204
}

Semantic roles & 50–950 ramp

primary
#A6228E
secondary
#5FC472
accent
#E95E3F
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A6228E

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

Preview Lab → · Contrast checker → · Palette generator →

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