#AF2F88#AF2F88

#AF2F88 is a mid, vivid pink. Relative luminance 0.129; OKLCH L 53.0% C 0.187 H 342.8°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#AF2F88
RGBrgb(175, 47, 136)
HSLhsl(318, 58%, 44%)
HSVhsv(318, 73%, 69%)
CMYKcmyk(0%, 73.1%, 22.3%, 31.4%)
CIE-LABlab(42.65, 59.40, -20.63)
CIE-LCHlch(42.65, 62.88, 340.85°)
OKLaboklab(53.04% 0.1787 -0.0552)
OKLCHoklch(53.04% 0.187 342.8)
XYZxyz(23.1405, 12.9269, 24.5643)
Luminance0.1293 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F88 #2FAF56
analogous
#962FAF #AF2F88 #AF2F48
triadic
#AF2F88 #88AF2F #2F88AF
tetradic
#AF2F88 #AF962F #2FAF56 #2F48AF
square
#AF2F88 #AF962F #2FAF56 #2F48AF
split-complementary
#AF2F88 #48AF2F #2FAF96
monochromatic
#4F153D #7F2263 #AF2F88 #CF4CA7 #DC7CBF

Accessibility & contrast

On white

5.86
#AF2F88 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#AF2F88 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2F88
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F88#FFFFFF#000000##FFFFFF
##AF2F881.005.863.595.86
#FFFFFF5.861.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C578A
Deuteranopia (green-blind)
#636C85
Tritanopia (blue-blind)
#BA3058
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af2f88;
/* rgb */ color: rgb(175, 47, 136);
/* oklch */ color: oklch(53.0% 0.187 342.8);
Tailwind
colors: {
  custom: {
    50: '#cb73ab',
    500: '#af2f88',
    950: '#000000',
  },
}
SCSS
$custom: #af2f88;
$custom-light: #cb73ab;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f88",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 136
  },
  "hsl": {
    "h": 318.281,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.53039,
    "c": 0.18702,
    "h": 342.8
  },
  "luminance": 0.12925
}

Semantic roles & 50–950 ramp

primary
#AF2F88
secondary
#75C48D
accent
#E17647
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF2F88

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

Preview Lab → · Contrast checker → · Palette generator →

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