#A8218F#A8218F

#A8218F is a mid, highly saturated pink. Relative luminance 0.114; OKLCH L 51.2% C 0.202 H 337.2°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#A8218F
RGBrgb(168, 33, 143)
HSLhsl(311, 67%, 39%)
HSVhsv(311, 80%, 66%)
CMYKcmyk(0%, 80.4%, 14.9%, 34.1%)
CIE-LABlab(40.24, 62.94, -28.74)
CIE-LCHlch(40.24, 69.19, 335.45°)
OKLaboklab(51.17% 0.1858 -0.0783)
OKLCHoklch(51.17% 0.202 337.2)
XYZxyz(21.6507, 11.3978, 27.0410)
Luminance0.1140 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8218F #21A83A
analogous
#7E21A8 #A8218F #A8214C
triadic
#A8218F #8FA821 #218FA8
tetradic
#A8218F #A87E21 #21A83A #214CA8
square
#A8218F #A87E21 #21A83A #214CA8
split-complementary
#A8218F #4CA821 #21A87E
monochromatic
#420D38 #751763 #A8218F #D630B7 #E063C9

Accessibility & contrast

On white

6.40
#A8218F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#A8218F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A8218F
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8218F#FFFFFF#000000##FFFFFF
##A8218F1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265292
Deuteranopia (green-blind)
#57668C
Tritanopia (blue-blind)
#B12B57
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a8218f;
/* rgb */ color: rgb(168, 33, 143);
/* oklch */ color: oklch(51.2% 0.202 337.2);
Tailwind
colors: {
  custom: {
    50: '#c66db0',
    500: '#a8218f',
    950: '#000000',
  },
}
SCSS
$custom: #a8218f;
$custom-light: #c66db0;
$custom-dark: #000000;
JSON
{
  "hex": "#a8218f",
  "rgb": {
    "r": 168,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 311.111,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.51171,
    "c": 0.20166,
    "h": 337.2
  },
  "luminance": 0.11396
}

Semantic roles & 50–950 ramp

primary
#A8218F
secondary
#5FC572
accent
#EA5E3E
background
#FCF7FA
surface
#F9EDF5
border
#D2C8CF
text
#130810
muted
#827B7F

Preview Lab

Preview with #A8218F

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

Preview Lab → · Contrast checker → · Palette generator →

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