#A8217B#A8217B

#A8217B is a mid, vivid pink. Relative luminance 0.108; OKLCH L 50.2% C 0.189 H 345.5°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#A8217B
RGBrgb(168, 33, 123)
HSLhsl(320, 67%, 39%)
HSVhsv(320, 80%, 66%)
CMYKcmyk(0%, 80.4%, 26.8%, 34.1%)
CIE-LABlab(39.32, 60.28, -17.86)
CIE-LCHlch(39.32, 62.87, 343.50°)
OKLaboklab(50.2% 0.1832 -0.0475)
OKLCHoklch(50.2% 0.189 345.5)
XYZxyz(20.2684, 10.8449, 19.7609)
Luminance0.1084 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8217B #21A84E
analogous
#9221A8 #A8217B #A82138
triadic
#A8217B #7BA821 #217BA8
tetradic
#A8217B #A89221 #21A84E #2138A8
square
#A8217B #A89221 #21A84E #2138A8
split-complementary
#A8217B #38A821 #21A892
monochromatic
#420D30 #751756 #A8217B #D6309F #E063B7

Accessibility & contrast

On white

6.63
#A8217B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#A8217B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A8217B
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8217B#FFFFFF#000000##FFFFFF
##A8217B1.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354E7D
Deuteranopia (green-blind)
#5E6578
Tritanopia (blue-blind)
#B41E4C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #a8217b;
/* rgb */ color: rgb(168, 33, 123);
/* oklch */ color: oklch(50.2% 0.189 345.5);
Tailwind
colors: {
  custom: {
    50: '#c66da1',
    500: '#a8217b',
    950: '#000000',
  },
}
SCSS
$custom: #a8217b;
$custom-light: #c66da1;
$custom-dark: #000000;
JSON
{
  "hex": "#a8217b",
  "rgb": {
    "r": 168,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 320,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.50203,
    "c": 0.18921,
    "h": 345.5
  },
  "luminance": 0.10843
}

Semantic roles & 50–950 ramp

primary
#A8217B
secondary
#5FC581
accent
#EA773E
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14080F
muted
#827B7E

Preview Lab

Preview with #A8217B

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

Preview Lab → · Contrast checker → · Palette generator →

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