#A6228D#A6228D

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

Color values

HEX#A6228D
RGBrgb(166, 34, 141)
HSLhsl(311, 66%, 39%)
HSVhsv(311, 80%, 65%)
CMYKcmyk(0%, 79.5%, 15.1%, 34.9%)
CIE-LABlab(39.88, 61.94, -28.12)
CIE-LCHlch(39.88, 68.02, 335.58°)
OKLaboklab(50.81% 0.183 -0.0766)
OKLCHoklch(50.81% 0.198 337.3)
XYZxyz(21.1061, 11.1762, 26.2398)
Luminance0.1117 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6228D #22A63B
analogous
#7D22A6 #A6228D #A6224B
triadic
#A6228D #8DA622 #228DA6
tetradic
#A6228D #A67D22 #22A63B #224BA6
square
#A6228D #A67D22 #22A63B #224BA6
split-complementary
#A6228D #4BA622 #22A67D
monochromatic
#400D37 #731862 #A6228D #D530B6 #DF63C8

Accessibility & contrast

On white

6.49
#A6228D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A6228D
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6228D#FFFFFF#000000##FFFFFF
##A6228D1.006.493.236.49
#FFFFFF6.491.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275190
Deuteranopia (green-blind)
#56658A
Tritanopia (blue-blind)
#AF2B56
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a6228d;
/* rgb */ color: rgb(166, 34, 141);
/* oklch */ color: oklch(50.8% 0.198 337.3);
Tailwind
colors: {
  custom: {
    50: '#c46dae',
    500: '#a6228d',
    950: '#000000',
  },
}
SCSS
$custom: #a6228d;
$custom-light: #c46dae;
$custom-dark: #000000;
JSON
{
  "hex": "#a6228d",
  "rgb": {
    "r": 166,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 311.364,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.50808,
    "c": 0.19833,
    "h": 337.3
  },
  "luminance": 0.11174
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A6228D

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

Preview Lab → · Contrast checker → · Palette generator →

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