#A0218C#A0218C

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

Color values

HEX#A0218C
RGBrgb(160, 33, 140)
HSLhsl(309, 66%, 38%)
HSVhsv(309, 79%, 63%)
CMYKcmyk(0%, 79.4%, 12.5%, 37.3%)
CIE-LABlab(38.65, 60.72, -29.51)
CIE-LCHlch(38.65, 67.51, 334.08°)
OKLaboklab(49.71% 0.1779 -0.0806)
OKLCHoklch(49.71% 0.195 335.6)
XYZxyz(19.7750, 10.4566, 25.7827)
Luminance0.1046 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A0218C #21A035
analogous
#7421A0 #A0218C #A0214C
triadic
#A0218C #8CA021 #218CA0
tetradic
#A0218C #A07421 #21A035 #214CA0
square
#A0218C #A07421 #21A035 #214CA0
split-complementary
#A0218C #4CA021 #21A074
monochromatic
#3B0C33 #6D1760 #A0218C #D32BB8 #DE5ECA

Accessibility & contrast

On white

6.79
#A0218C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A0218C
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A0218C#FFFFFF#000000##FFFFFF
##A0218C1.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a0218c;
/* rgb */ color: rgb(160, 33, 140);
/* oklch */ color: oklch(49.7% 0.195 335.6);
Tailwind
colors: {
  custom: {
    50: '#c06cae',
    500: '#a0218c',
    950: '#000000',
  },
}
SCSS
$custom: #a0218c;
$custom-light: #c06cae;
$custom-dark: #000000;
JSON
{
  "hex": "#a0218c",
  "rgb": {
    "r": 160,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 309.449,
    "s": 65.803,
    "l": 37.843
  },
  "oklch": {
    "l": 0.4971,
    "c": 0.19531,
    "h": 335.6
  },
  "luminance": 0.10455
}

Semantic roles & 50–950 ramp

primary
#A0218C
secondary
#5BC26B
accent
#E95A3F
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #A0218C

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

Preview Lab → · Contrast checker → · Palette generator →

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