#A6227D#A6227D

#A6227D is a mid, vivid pink. Relative luminance 0.107; OKLCH L 50.0% C 0.188 H 344.0°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#A6227D
RGBrgb(166, 34, 125)
HSLhsl(319, 66%, 39%)
HSVhsv(319, 80%, 65%)
CMYKcmyk(0%, 79.5%, 24.7%, 34.9%)
CIE-LABlab(39.13, 59.77, -19.42)
CIE-LCHlch(39.13, 62.85, 342.00°)
OKLaboklab(50.03% 0.1809 -0.0519)
OKLCHoklch(50.03% 0.188 344)
XYZxyz(20.0004, 10.7339, 20.4166)
Luminance0.1073 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6227D #22A64B
analogous
#8D22A6 #A6227D #A6223B
triadic
#A6227D #7DA622 #227DA6
tetradic
#A6227D #A68D22 #22A64B #223BA6
square
#A6227D #A68D22 #22A64B #223BA6
split-complementary
#A6227D #3BA622 #22A68D
monochromatic
#400D31 #731857 #A6227D #D530A2 #DF63B9

Accessibility & contrast

On white

6.67
#A6227D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A6227D
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6227D#FFFFFF#000000##FFFFFF
##A6227D1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334E7F
Deuteranopia (green-blind)
#5C647A
Tritanopia (blue-blind)
#B1214D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a6227d;
/* rgb */ color: rgb(166, 34, 125);
/* oklch */ color: oklch(50.0% 0.188 344.0);
Tailwind
colors: {
  custom: {
    50: '#c56da2',
    500: '#a6227d',
    950: '#000000',
  },
}
SCSS
$custom: #a6227d;
$custom-light: #c56da2;
$custom-dark: #000000;
JSON
{
  "hex": "#a6227d",
  "rgb": {
    "r": 166,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 318.636,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.50026,
    "c": 0.18817,
    "h": 344
  },
  "luminance": 0.10732
}

Semantic roles & 50–950 ramp

primary
#A6227D
secondary
#5FC47F
accent
#E9743F
background
#FCF7FA
surface
#F9EDF3
border
#D2C8CD
text
#13080F
muted
#827B7F

Preview Lab

Preview with #A6227D

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

Preview Lab → · Contrast checker → · Palette generator →

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