#A6228C#A6228C

#A6228C is a mid, vivid pink. Relative luminance 0.111; OKLCH L 50.8% C 0.198 H 337.7°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#A6228C
RGBrgb(166, 34, 140)
HSLhsl(312, 66%, 39%)
HSVhsv(312, 80%, 65%)
CMYKcmyk(0%, 79.5%, 15.7%, 34.9%)
CIE-LABlab(39.83, 61.79, -27.59)
CIE-LCHlch(39.83, 67.67, 335.94°)
OKLaboklab(50.76% 0.1829 -0.075)
OKLCHoklch(50.76% 0.198 337.7)
XYZxyz(21.0320, 11.1465, 25.8497)
Luminance0.1114 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6228C #22A63C
analogous
#7E22A6 #A6228C #A6224A
triadic
#A6228C #8CA622 #228CA6
tetradic
#A6228C #A67E22 #22A63C #224AA6
square
#A6228C #A67E22 #22A63C #224AA6
split-complementary
#A6228C #4AA622 #22A67E
monochromatic
#400D36 #731861 #A6228C #D530B4 #DF63C7

Accessibility & contrast

On white

6.50
#A6228C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#A6228C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A6228C
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6228C#FFFFFF#000000##FFFFFF
##A6228C1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28518F
Deuteranopia (green-blind)
#566589
Tritanopia (blue-blind)
#AF2B56
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a6228c;
/* rgb */ color: rgb(166, 34, 140);
/* oklch */ color: oklch(50.8% 0.198 337.7);
Tailwind
colors: {
  custom: {
    50: '#c46dae',
    500: '#a6228c',
    950: '#000000',
  },
}
SCSS
$custom: #a6228c;
$custom-light: #c46dae;
$custom-dark: #000000;
JSON
{
  "hex": "#a6228c",
  "rgb": {
    "r": 166,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 311.818,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.50756,
    "c": 0.19766,
    "h": 337.7
  },
  "luminance": 0.11144
}

Semantic roles & 50–950 ramp

primary
#A6228C
secondary
#5FC473
accent
#E9603F
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A6228C

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

Preview Lab → · Contrast checker → · Palette generator →

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