#A6227F#A6227F

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

Color values

HEX#A6227F
RGBrgb(166, 34, 127)
HSLhsl(318, 66%, 39%)
HSVhsv(318, 80%, 65%)
CMYKcmyk(0%, 79.5%, 23.5%, 34.9%)
CIE-LABlab(39.22, 60.03, -20.53)
CIE-LCHlch(39.22, 63.45, 341.12°)
OKLaboklab(50.12% 0.1812 -0.055)
OKLCHoklch(50.12% 0.189 343.1)
XYZxyz(20.1295, 10.7855, 21.0963)
Luminance0.1078 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6227F #22A649
analogous
#8B22A6 #A6227F #A6223D
triadic
#A6227F #7FA622 #227FA6
tetradic
#A6227F #A68B22 #22A649 #223DA6
square
#A6227F #A68B22 #22A649 #223DA6
split-complementary
#A6227F #3DA622 #22A68B
monochromatic
#400D31 #731858 #A6227F #D530A4 #DF63BB

Accessibility & contrast

On white

6.65
#A6227F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#A6227F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A6227F
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6227F#FFFFFF#000000##FFFFFF
##A6227F1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324F81
Deuteranopia (green-blind)
#5B647C
Tritanopia (blue-blind)
#B1224F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a6227f;
/* rgb */ color: rgb(166, 34, 127);
/* oklch */ color: oklch(50.1% 0.189 343.1);
Tailwind
colors: {
  custom: {
    50: '#c56da4',
    500: '#a6227f',
    950: '#000000',
  },
}
SCSS
$custom: #a6227f;
$custom-light: #c56da4;
$custom-dark: #000000;
JSON
{
  "hex": "#a6227f",
  "rgb": {
    "r": 166,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 317.727,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.50119,
    "c": 0.18937,
    "h": 343.1
  },
  "luminance": 0.10783
}

Semantic roles & 50–950 ramp

primary
#A6227F
secondary
#5FC47D
accent
#E9713F
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#13080F
muted
#827B7F

Preview Lab

Preview with #A6227F

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

Preview Lab → · Contrast checker → · Palette generator →

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