#A8218E#A8218E

#A8218E is a mid, highly saturated pink. Relative luminance 0.114; OKLCH L 51.1% C 0.201 H 337.5°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#A8218E
RGBrgb(168, 33, 142)
HSLhsl(312, 67%, 39%)
HSVhsv(312, 80%, 66%)
CMYKcmyk(0%, 80.4%, 15.5%, 34.1%)
CIE-LABlab(40.19, 62.80, -28.21)
CIE-LCHlch(40.19, 68.84, 335.81°)
OKLaboklab(51.12% 0.1858 -0.0768)
OKLCHoklch(51.12% 0.201 337.5)
XYZxyz(21.5753, 11.3676, 26.6439)
Luminance0.1137 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8218E #21A83B
analogous
#7F21A8 #A8218E #A8214A
triadic
#A8218E #8EA821 #218EA8
tetradic
#A8218E #A87F21 #21A83B #214AA8
square
#A8218E #A87F21 #21A83B #214AA8
split-complementary
#A8218E #4AA821 #21A87F
monochromatic
#420D38 #751763 #A8218E #D630B6 #E063C8

Accessibility & contrast

On white

6.42
#A8218E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#A8218E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A8218E
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8218E#FFFFFF#000000##FFFFFF
##A8218E1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275291
Deuteranopia (green-blind)
#57668B
Tritanopia (blue-blind)
#B12A57
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a8218e;
/* rgb */ color: rgb(168, 33, 142);
/* oklch */ color: oklch(51.1% 0.201 337.5);
Tailwind
colors: {
  custom: {
    50: '#c66daf',
    500: '#a8218e',
    950: '#000000',
  },
}
SCSS
$custom: #a8218e;
$custom-light: #c66daf;
$custom-dark: #000000;
JSON
{
  "hex": "#a8218e",
  "rgb": {
    "r": 168,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 311.556,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.51119,
    "c": 0.20099,
    "h": 337.5
  },
  "luminance": 0.11366
}

Semantic roles & 50–950 ramp

primary
#A8218E
secondary
#5FC573
accent
#EA5F3E
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A8218E

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

Preview Lab → · Contrast checker → · Palette generator →

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