#A0228F#A0228F

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

Color values

HEX#A0228F
RGBrgb(160, 34, 143)
HSLhsl(308, 65%, 38%)
HSVhsv(308, 79%, 63%)
CMYKcmyk(0%, 78.8%, 10.6%, 37.3%)
CIE-LABlab(38.90, 60.88, -30.95)
CIE-LCHlch(38.90, 68.30, 333.05°)
OKLaboklab(49.94% 0.1772 -0.0848)
OKLCHoklch(49.94% 0.196 334.4)
XYZxyz(20.0274, 10.6026, 26.9730)
Luminance0.1060 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A0228F #22A033
analogous
#7222A0 #A0228F #A02250
triadic
#A0228F #8FA022 #228FA0
tetradic
#A0228F #A07222 #22A033 #2250A0
square
#A0228F #A07222 #22A033 #2250A0
split-complementary
#A0228F #50A022 #22A072
monochromatic
#3B0D35 #6E1762 #A0228F #D22DBC #DD5FCC

Accessibility & contrast

On white

6.73
#A0228F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#A0228F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A0228F
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A0228F#FFFFFF#000000##FFFFFF
##A0228F1.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205092
Deuteranopia (green-blind)
#50628C
Tritanopia (blue-blind)
#A82E57
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a0228f;
/* rgb */ color: rgb(160, 34, 143);
/* oklch */ color: oklch(49.9% 0.196 334.4);
Tailwind
colors: {
  custom: {
    50: '#c06cb0',
    500: '#a0228f',
    950: '#000000',
  },
}
SCSS
$custom: #a0228f;
$custom-light: #c06cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#a0228f",
  "rgb": {
    "r": 160,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 308.095,
    "s": 64.948,
    "l": 38.039
  },
  "oklch": {
    "l": 0.49942,
    "c": 0.19647,
    "h": 334.4
  },
  "luminance": 0.10601
}

Semantic roles & 50–950 ramp

primary
#A0228F
secondary
#5CC26A
accent
#E85740
background
#FCF7FA
surface
#F8EDF5
border
#D1C8CF
text
#130810
muted
#827B7F

Preview Lab

Preview with #A0228F

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

Preview Lab → · Contrast checker → · Palette generator →

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