#AF2F8A#AF2F8A

#AF2F8A is a mid, vivid pink. Relative luminance 0.130; OKLCH L 53.1% C 0.188 H 342.0°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#AF2F8A
RGBrgb(175, 47, 138)
HSLhsl(317, 58%, 44%)
HSVhsv(317, 73%, 69%)
CMYKcmyk(0%, 73.1%, 21.1%, 31.4%)
CIE-LABlab(42.74, 59.67, -21.71)
CIE-LCHlch(42.74, 63.49, 340.00°)
OKLaboklab(53.13% 0.179 -0.0583)
OKLCHoklch(53.13% 0.188 342)
XYZxyz(23.2839, 12.9843, 25.3198)
Luminance0.1298 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F8A #2FAF54
analogous
#942FAF #AF2F8A #AF2F4A
triadic
#AF2F8A #8AAF2F #2F8AAF
tetradic
#AF2F8A #AF942F #2FAF54 #2F4AAF
square
#AF2F8A #AF942F #2FAF54 #2F4AAF
split-complementary
#AF2F8A #4AAF2F #2FAF94
monochromatic
#4F153E #7F2264 #AF2F8A #CF4CA9 #DC7CC0

Accessibility & contrast

On white

5.84
#AF2F8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#AF2F8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2F8A
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F8A#FFFFFF#000000##FFFFFF
##AF2F8A1.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B588D
Deuteranopia (green-blind)
#636C87
Tritanopia (blue-blind)
#BA3159
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af2f8a;
/* rgb */ color: rgb(175, 47, 138);
/* oklch */ color: oklch(53.1% 0.188 342.0);
Tailwind
colors: {
  custom: {
    50: '#cb74ac',
    500: '#af2f8a',
    950: '#000000',
  },
}
SCSS
$custom: #af2f8a;
$custom-light: #cb74ac;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f8a",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 317.344,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.5313,
    "c": 0.18828,
    "h": 342
  },
  "luminance": 0.12982
}

Semantic roles & 50–950 ramp

primary
#AF2F8A
secondary
#75C48C
accent
#E17347
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF2F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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