#A6227E#A6227E

#A6227E is a mid, vivid pink. Relative luminance 0.108; OKLCH L 50.1% C 0.189 H 343.6°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#A6227E
RGBrgb(166, 34, 126)
HSLhsl(318, 66%, 39%)
HSVhsv(318, 80%, 65%)
CMYKcmyk(0%, 79.5%, 24.1%, 34.9%)
CIE-LABlab(39.17, 59.90, -19.98)
CIE-LCHlch(39.17, 63.15, 341.56°)
OKLaboklab(50.07% 0.1811 -0.0534)
OKLCHoklch(50.07% 0.189 343.6)
XYZxyz(20.0646, 10.7596, 20.7548)
Luminance0.1076 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6227E #22A64A
analogous
#8C22A6 #A6227E #A6223C
triadic
#A6227E #7EA622 #227EA6
tetradic
#A6227E #A68C22 #22A64A #223CA6
square
#A6227E #A68C22 #22A64A #223CA6
split-complementary
#A6227E #3CA622 #22A68C
monochromatic
#400D31 #731857 #A6227E #D530A3 #DF63BA

Accessibility & contrast

On white

6.66
#A6227E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#A6227E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A6227E
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6227E#FFFFFF#000000##FFFFFF
##A6227E1.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324E80
Deuteranopia (green-blind)
#5C647B
Tritanopia (blue-blind)
#B1224E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a6227e;
/* rgb */ color: rgb(166, 34, 126);
/* oklch */ color: oklch(50.1% 0.189 343.6);
Tailwind
colors: {
  custom: {
    50: '#c56da3',
    500: '#a6227e',
    950: '#000000',
  },
}
SCSS
$custom: #a6227e;
$custom-light: #c56da3;
$custom-dark: #000000;
JSON
{
  "hex": "#a6227e",
  "rgb": {
    "r": 166,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 318.182,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.50072,
    "c": 0.18878,
    "h": 343.6
  },
  "luminance": 0.10757
}

Semantic roles & 50–950 ramp

primary
#A6227E
secondary
#5FC47E
accent
#E9723F
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#13080F
muted
#827B7F

Preview Lab

Preview with #A6227E

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

Preview Lab → · Contrast checker → · Palette generator →

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