#A6228B#A6228B

#A6228B is a mid, vivid pink. Relative luminance 0.111; OKLCH L 50.7% C 0.197 H 338.1°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#A6228B
RGBrgb(166, 34, 139)
HSLhsl(312, 66%, 39%)
HSVhsv(312, 80%, 65%)
CMYKcmyk(0%, 79.5%, 16.3%, 34.9%)
CIE-LABlab(39.78, 61.65, -27.05)
CIE-LCHlch(39.78, 67.33, 336.31°)
OKLaboklab(50.71% 0.1828 -0.0735)
OKLCHoklch(50.71% 0.197 338.1)
XYZxyz(20.9586, 11.1172, 25.4631)
Luminance0.1111 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6228B #22A63D
analogous
#7F22A6 #A6228B #A62249
triadic
#A6228B #8BA622 #228BA6
tetradic
#A6228B #A67F22 #22A63D #2249A6
square
#A6228B #A67F22 #22A63D #2249A6
split-complementary
#A6228B #49A622 #22A67F
monochromatic
#400D36 #731860 #A6228B #D530B3 #DF63C6

Accessibility & contrast

On white

6.52
#A6228B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#A6228B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A6228B
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6228B#FFFFFF#000000##FFFFFF
##A6228B1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29518E
Deuteranopia (green-blind)
#576588
Tritanopia (blue-blind)
#AF2A55
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a6228b;
/* rgb */ color: rgb(166, 34, 139);
/* oklch */ color: oklch(50.7% 0.197 338.1);
Tailwind
colors: {
  custom: {
    50: '#c46dad',
    500: '#a6228b',
    950: '#000000',
  },
}
SCSS
$custom: #a6228b;
$custom-light: #c46dad;
$custom-dark: #000000;
JSON
{
  "hex": "#a6228b",
  "rgb": {
    "r": 166,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 312.273,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.50705,
    "c": 0.19699,
    "h": 338.1
  },
  "luminance": 0.11115
}

Semantic roles & 50–950 ramp

primary
#A6228B
secondary
#5FC474
accent
#E9623F
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A6228B

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

Preview Lab → · Contrast checker → · Palette generator →

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