#AF2158#AF2158

#AF2158 is a mid, vivid pink. Relative luminance 0.109; OKLCH L 50.1% C 0.179 H 3.8°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#AF2158
RGBrgb(175, 33, 88)
HSLhsl(337, 68%, 41%)
HSVhsv(337, 81%, 69%)
CMYKcmyk(0%, 81.1%, 49.7%, 31.4%)
CIE-LABlab(39.43, 58.42, 4.48)
CIE-LCHlch(39.43, 58.59, 4.39°)
OKLaboklab(50.12% 0.179 0.012)
OKLCHoklch(50.12% 0.179 3.8)
XYZxyz(19.9863, 10.9091, 10.2839)
Luminance0.1091 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2158 #21AF78
analogous
#AF219F #AF2158 #AF3121
triadic
#AF2158 #58AF21 #2158AF
tetradic
#AF2158 #9FAF21 #21AF78 #3121AF
square
#AF2158 #9FAF21 #21AF78 #3121AF
split-complementary
#AF2158 #21AF31 #219FAF
monochromatic
#480E24 #7C173E #AF2158 #D93474 #E36897

Accessibility & contrast

On white

6.60
#AF2158 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#AF2158 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2158
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2158#FFFFFF#000000##FFFFFF
##AF21581.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#464B59
Deuteranopia (green-blind)
#6B6755
Tritanopia (blue-blind)
#BF003A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #af2158;
/* rgb */ color: rgb(175, 33, 88);
/* oklch */ color: oklch(50.1% 0.179 3.8);
Tailwind
colors: {
  custom: {
    50: '#cd6c86',
    500: '#af2158',
    950: '#000000',
  },
}
SCSS
$custom: #af2158;
$custom-light: #cd6c86;
$custom-dark: #000000;
JSON
{
  "hex": "#af2158",
  "rgb": {
    "r": 175,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 336.761,
    "s": 68.269,
    "l": 40.784
  },
  "oklch": {
    "l": 0.50123,
    "c": 0.17944,
    "h": 3.8
  },
  "luminance": 0.10906
}

Semantic roles & 50–950 ramp

primary
#AF2158
secondary
#64C8A1
accent
#EBA83D
background
#FDF7F8
surface
#FAEDEF
border
#D3C8CA
text
#15080B
muted
#837B7C

Preview Lab

Preview with #AF2158

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

Preview Lab → · Contrast checker → · Palette generator →

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