#A0228C#A0228C

#A0228C is a mid, vivid purple. Relative luminance 0.105; OKLCH L 49.8% C 0.194 H 335.6°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#A0228C
RGBrgb(160, 34, 140)
HSLhsl(310, 65%, 38%)
HSVhsv(310, 79%, 63%)
CMYKcmyk(0%, 78.8%, 12.5%, 37.3%)
CIE-LABlab(38.75, 60.44, -29.36)
CIE-LCHlch(38.75, 67.19, 334.09°)
OKLaboklab(49.78% 0.1771 -0.0802)
OKLCHoklch(49.78% 0.194 335.6)
XYZxyz(19.8032, 10.5129, 25.7921)
Luminance0.1051 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A0228C #22A036
analogous
#7522A0 #A0228C #A0224D
triadic
#A0228C #8CA022 #228CA0
tetradic
#A0228C #A07522 #22A036 #224DA0
square
#A0228C #A07522 #22A036 #224DA0
split-complementary
#A0228C #4DA022 #22A075
monochromatic
#3B0D34 #6E1760 #A0228C #D22DB8 #DD5FC9

Accessibility & contrast

On white

6.77
#A0228C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A0228C
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A0228C#FFFFFF#000000##FFFFFF
##A0228C1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234F8F
Deuteranopia (green-blind)
#516289
Tritanopia (blue-blind)
#A82D56
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #a0228c;
/* rgb */ color: rgb(160, 34, 140);
/* oklch */ color: oklch(49.8% 0.194 335.6);
Tailwind
colors: {
  custom: {
    50: '#c06cae',
    500: '#a0228c',
    950: '#000000',
  },
}
SCSS
$custom: #a0228c;
$custom-light: #c06cae;
$custom-dark: #000000;
JSON
{
  "hex": "#a0228c",
  "rgb": {
    "r": 160,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 309.524,
    "s": 64.948,
    "l": 38.039
  },
  "oklch": {
    "l": 0.4978,
    "c": 0.19437,
    "h": 335.6
  },
  "luminance": 0.10511
}

Semantic roles & 50–950 ramp

primary
#A0228C
secondary
#5CC26C
accent
#E85B40
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A0228C

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

Preview Lab → · Contrast checker → · Palette generator →

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