#A0228B#A0228B

#A0228B is a mid, vivid pink. Relative luminance 0.105; OKLCH L 49.7% C 0.194 H 336.0°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#A0228B
RGBrgb(160, 34, 139)
HSLhsl(310, 65%, 38%)
HSVhsv(310, 79%, 63%)
CMYKcmyk(0%, 78.8%, 13.1%, 37.3%)
CIE-LABlab(38.70, 60.29, -28.82)
CIE-LCHlch(38.70, 66.82, 334.45°)
OKLaboklab(49.73% 0.177 -0.0787)
OKLCHoklch(49.73% 0.194 336)
XYZxyz(19.7298, 10.4836, 25.4055)
Luminance0.1048 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A0228B #22A037
analogous
#7622A0 #A0228B #A0224C
triadic
#A0228B #8BA022 #228BA0
tetradic
#A0228B #A07622 #22A037 #224CA0
square
#A0228B #A07622 #22A037 #224CA0
split-complementary
#A0228B #4CA022 #22A076
monochromatic
#3B0D33 #6E175F #A0228B #D22DB7 #DD5FC8

Accessibility & contrast

On white

6.78
#A0228B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#A0228B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A0228B
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A0228B#FFFFFF#000000##FFFFFF
##A0228B1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244F8E
Deuteranopia (green-blind)
#526288
Tritanopia (blue-blind)
#A82C55
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #a0228b;
/* rgb */ color: rgb(160, 34, 139);
/* oklch */ color: oklch(49.7% 0.194 336.0);
Tailwind
colors: {
  custom: {
    50: '#c06cad',
    500: '#a0228b',
    950: '#000000',
  },
}
SCSS
$custom: #a0228b;
$custom-light: #c06cad;
$custom-dark: #000000;
JSON
{
  "hex": "#a0228b",
  "rgb": {
    "r": 160,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 310,
    "s": 64.948,
    "l": 38.039
  },
  "oklch": {
    "l": 0.49727,
    "c": 0.19368,
    "h": 336
  },
  "luminance": 0.10482
}

Semantic roles & 50–950 ramp

primary
#A0228B
secondary
#5CC26D
accent
#E85C40
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #A0228B

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

Preview Lab → · Contrast checker → · Palette generator →

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