#AF2F8F#AF2F8F

#AF2F8F is a mid, vivid pink. Relative luminance 0.131; OKLCH L 53.4% C 0.192 H 339.9°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#AF2F8F
RGBrgb(175, 47, 143)
HSLhsl(315, 58%, 44%)
HSVhsv(315, 73%, 69%)
CMYKcmyk(0%, 73.1%, 18.3%, 31.4%)
CIE-LABlab(42.96, 60.36, -24.41)
CIE-LCHlch(42.96, 65.11, 337.98°)
OKLaboklab(53.36% 0.1798 -0.0659)
OKLCHoklch(53.36% 0.192 339.9)
XYZxyz(23.6543, 13.1325, 27.2703)
Luminance0.1313 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F8F #2FAF4F
analogous
#8F2FAF #AF2F8F #AF2F4F
triadic
#AF2F8F #8FAF2F #2F8FAF
tetradic
#AF2F8F #AF8F2F #2FAF4F #2F4FAF
square
#AF2F8F #AF8F2F #2FAF4F #2F4FAF
split-complementary
#AF2F8F #4FAF2F #2FAF8F
monochromatic
#4F1540 #7F2268 #AF2F8F #CF4CAE #DC7CC4

Accessibility & contrast

On white

5.79
#AF2F8F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#AF2F8F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2F8F
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F8F#FFFFFF#000000##FFFFFF
##AF2F8F1.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385892
Deuteranopia (green-blind)
#616D8C
Tritanopia (blue-blind)
#B9335B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af2f8f;
/* rgb */ color: rgb(175, 47, 143);
/* oklch */ color: oklch(53.4% 0.192 339.9);
Tailwind
colors: {
  custom: {
    50: '#cb74b0',
    500: '#af2f8f',
    950: '#000000',
  },
}
SCSS
$custom: #af2f8f;
$custom-light: #cb74b0;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f8f",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 143
  },
  "hsl": {
    "h": 315,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.53364,
    "c": 0.19152,
    "h": 339.9
  },
  "luminance": 0.1313
}

Semantic roles & 50–950 ramp

primary
#AF2F8F
secondary
#75C489
accent
#E16D47
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF2F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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