#AF3158#AF3158

#AF3158 is a mid, vivid pink. Relative luminance 0.120; OKLCH L 51.5% C 0.164 H 6.5°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#AF3158
RGBrgb(175, 49, 88)
HSLhsl(341, 56%, 44%)
HSVhsv(341, 72%, 69%)
CMYKcmyk(0%, 72%, 49.7%, 31.4%)
CIE-LABlab(41.24, 53.31, 7.07)
CIE-LCHlch(41.24, 53.77, 7.56°)
OKLaboklab(51.46% 0.1626 0.0185)
OKLCHoklch(51.46% 0.164 6.5)
XYZxyz(20.5407, 12.0179, 10.4687)
Luminance0.1202 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3158 #31AF88
analogous
#AF3197 #AF3158 #AF4931
triadic
#AF3158 #58AF31 #3158AF
tetradic
#AF3158 #97AF31 #31AF88 #4931AF
square
#AF3158 #97AF31 #31AF88 #4931AF
split-complementary
#AF3158 #31AF49 #3197AF
monochromatic
#4F1628 #7F2440 #AF3158 #CE4F77 #DB7F9C

Accessibility & contrast

On white

6.17
#AF3158 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#AF3158 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3158
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3158#FFFFFF#000000##FFFFFF
##AF31581.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F5159
Deuteranopia (green-blind)
#706A55
Tritanopia (blue-blind)
#BF1841
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af3158;
/* rgb */ color: rgb(175, 49, 88);
/* oklch */ color: oklch(51.5% 0.164 6.5);
Tailwind
colors: {
  custom: {
    50: '#cc7386',
    500: '#af3158',
    950: '#000000',
  },
}
SCSS
$custom: #af3158;
$custom-light: #cc7386;
$custom-dark: #000000;
JSON
{
  "hex": "#af3158",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 88
  },
  "hsl": {
    "h": 341.429,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.51462,
    "c": 0.16364,
    "h": 6.5
  },
  "luminance": 0.12015
}

Semantic roles & 50–950 ramp

primary
#AF3158
secondary
#78C4AC
accent
#E0B148
background
#FDF7F8
surface
#FAEDEF
border
#D3C8CA
text
#14090B
muted
#837B7C

Preview Lab

Preview with #AF3158

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

Preview Lab → · Contrast checker → · Palette generator →

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