#A0218B#A0218B

#A0218B is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.7% C 0.195 H 336.0°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#A0218B
RGBrgb(160, 33, 139)
HSLhsl(310, 66%, 38%)
HSVhsv(310, 79%, 63%)
CMYKcmyk(0%, 79.4%, 13.1%, 37.3%)
CIE-LABlab(38.60, 60.57, -28.98)
CIE-LCHlch(38.60, 67.14, 334.43°)
OKLaboklab(49.66% 0.1778 -0.0791)
OKLCHoklch(49.66% 0.195 336)
XYZxyz(19.7016, 10.4272, 25.3961)
Luminance0.1042 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A0218B #21A036
analogous
#7521A0 #A0218B #A0214C
triadic
#A0218B #8BA021 #218BA0
tetradic
#A0218B #A07521 #21A036 #214CA0
square
#A0218B #A07521 #21A036 #214CA0
split-complementary
#A0218B #4CA021 #21A075
monochromatic
#3B0C33 #6D175F #A0218B #D32BB7 #DE5EC9

Accessibility & contrast

On white

6.81
#A0218B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#A0218B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A0218B
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A0218B#FFFFFF#000000##FFFFFF
##A0218B1.006.813.096.81
#FFFFFF6.811.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a0218b;
/* rgb */ color: rgb(160, 33, 139);
/* oklch */ color: oklch(49.7% 0.195 336.0);
Tailwind
colors: {
  custom: {
    50: '#c06cad',
    500: '#a0218b',
    950: '#000000',
  },
}
SCSS
$custom: #a0218b;
$custom-light: #c06cad;
$custom-dark: #000000;
JSON
{
  "hex": "#a0218b",
  "rgb": {
    "r": 160,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 309.921,
    "s": 65.803,
    "l": 37.843
  },
  "oklch": {
    "l": 0.49657,
    "c": 0.19462,
    "h": 336
  },
  "luminance": 0.10425
}

Semantic roles & 50–950 ramp

primary
#A0218B
secondary
#5BC26C
accent
#E95B3F
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #A0218B

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

Preview Lab → · Contrast checker → · Palette generator →

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