#A6228A#A6228A

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

Color values

HEX#A6228A
RGBrgb(166, 34, 138)
HSLhsl(313, 66%, 39%)
HSVhsv(313, 80%, 65%)
CMYKcmyk(0%, 79.5%, 16.9%, 34.9%)
CIE-LABlab(39.73, 61.51, -26.52)
CIE-LCHlch(39.73, 66.99, 336.68°)
OKLaboklab(50.65% 0.1827 -0.072)
OKLCHoklch(50.65% 0.196 338.5)
XYZxyz(20.8859, 11.0881, 25.0801)
Luminance0.1109 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6228A #22A63E
analogous
#8022A6 #A6228A #A62248
triadic
#A6228A #8AA622 #228AA6
tetradic
#A6228A #A68022 #22A63E #2248A6
square
#A6228A #A68022 #22A63E #2248A6
split-complementary
#A6228A #48A622 #22A680
monochromatic
#400D36 #731860 #A6228A #D530B2 #DF63C5

Accessibility & contrast

On white

6.53
#A6228A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A6228A
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6228A#FFFFFF#000000##FFFFFF
##A6228A1.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A518D
Deuteranopia (green-blind)
#576587
Tritanopia (blue-blind)
#B02955
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a6228a;
/* rgb */ color: rgb(166, 34, 138);
/* oklch */ color: oklch(50.7% 0.196 338.5);
Tailwind
colors: {
  custom: {
    50: '#c46dac',
    500: '#a6228a',
    950: '#000000',
  },
}
SCSS
$custom: #a6228a;
$custom-light: #c46dac;
$custom-dark: #000000;
JSON
{
  "hex": "#a6228a",
  "rgb": {
    "r": 166,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 312.727,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.50654,
    "c": 0.19633,
    "h": 338.5
  },
  "luminance": 0.11086
}

Semantic roles & 50–950 ramp

primary
#A6228A
secondary
#5FC475
accent
#E9633F
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A6228A

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

Preview Lab → · Contrast checker → · Palette generator →

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