#AF2F8D#AF2F8D

#AF2F8D is a mid, vivid pink. Relative luminance 0.131; OKLCH L 53.3% C 0.190 H 340.7°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#AF2F8D
RGBrgb(175, 47, 141)
HSLhsl(316, 58%, 44%)
HSVhsv(316, 73%, 69%)
CMYKcmyk(0%, 73.1%, 19.4%, 31.4%)
CIE-LABlab(42.87, 60.08, -23.33)
CIE-LCHlch(42.87, 64.45, 338.77°)
OKLaboklab(53.27% 0.1795 -0.0629)
OKLCHoklch(53.27% 0.19 340.7)
XYZxyz(23.5041, 13.0724, 26.4795)
Luminance0.1307 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F8D #2FAF51
analogous
#912FAF #AF2F8D #AF2F4D
triadic
#AF2F8D #8DAF2F #2F8DAF
tetradic
#AF2F8D #AF912F #2FAF51 #2F4DAF
square
#AF2F8D #AF912F #2FAF51 #2F4DAF
split-complementary
#AF2F8D #4DAF2F #2FAF91
monochromatic
#4F153F #7F2266 #AF2F8D #CF4CAC #DC7CC3

Accessibility & contrast

On white

5.81
#AF2F8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#AF2F8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2F8D
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F8D#FFFFFF#000000##FFFFFF
##AF2F8D1.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395890
Deuteranopia (green-blind)
#626D8A
Tritanopia (blue-blind)
#BA325A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af2f8d;
/* rgb */ color: rgb(175, 47, 141);
/* oklch */ color: oklch(53.3% 0.190 340.7);
Tailwind
colors: {
  custom: {
    50: '#cb74ae',
    500: '#af2f8d',
    950: '#000000',
  },
}
SCSS
$custom: #af2f8d;
$custom-light: #cb74ae;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f8d",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 315.938,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.53269,
    "c": 0.1902,
    "h": 340.7
  },
  "luminance": 0.1307
}

Semantic roles & 50–950 ramp

primary
#AF2F8D
secondary
#75C48A
accent
#E17047
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF2F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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