#A0228E#A0228E

#A0228E is a mid, vivid purple. Relative luminance 0.106; OKLCH L 49.9% C 0.196 H 334.8°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#A0228E
RGBrgb(160, 34, 142)
HSLhsl(309, 65%, 38%)
HSVhsv(309, 79%, 63%)
CMYKcmyk(0%, 78.8%, 11.2%, 37.3%)
CIE-LABlab(38.85, 60.73, -30.42)
CIE-LCHlch(38.85, 67.92, 333.39°)
OKLaboklab(49.89% 0.1772 -0.0833)
OKLCHoklch(49.89% 0.196 334.8)
XYZxyz(19.9520, 10.5724, 26.5758)
Luminance0.1057 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A0228E #22A034
analogous
#7322A0 #A0228E #A0224F
triadic
#A0228E #8EA022 #228EA0
tetradic
#A0228E #A07322 #22A034 #224FA0
square
#A0228E #A07322 #22A034 #224FA0
split-complementary
#A0228E #4FA022 #22A073
monochromatic
#3B0D34 #6E1761 #A0228E #D22DBB #DD5FCB

Accessibility & contrast

On white

6.74
#A0228E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#A0228E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A0228E
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A0228E#FFFFFF#000000##FFFFFF
##A0228E1.006.743.116.74
#FFFFFF6.741.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215091
Deuteranopia (green-blind)
#50628B
Tritanopia (blue-blind)
#A82E57
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #a0228e;
/* rgb */ color: rgb(160, 34, 142);
/* oklch */ color: oklch(49.9% 0.196 334.8);
Tailwind
colors: {
  custom: {
    50: '#c06caf',
    500: '#a0228e',
    950: '#000000',
  },
}
SCSS
$custom: #a0228e;
$custom-light: #c06caf;
$custom-dark: #000000;
JSON
{
  "hex": "#a0228e",
  "rgb": {
    "r": 160,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 308.571,
    "s": 64.948,
    "l": 38.039
  },
  "oklch": {
    "l": 0.49888,
    "c": 0.19577,
    "h": 334.8
  },
  "luminance": 0.10571
}

Semantic roles & 50–950 ramp

primary
#A0228E
secondary
#5CC26A
accent
#E85840
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A0228E

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

Preview Lab → · Contrast checker → · Palette generator →

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