#AF2D8D#AF2D8D

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

Color values

HEX#AF2D8D
RGBrgb(175, 45, 141)
HSLhsl(316, 59%, 43%)
HSVhsv(316, 74%, 69%)
CMYKcmyk(0%, 74.3%, 19.4%, 31.4%)
CIE-LABlab(42.64, 60.75, -23.70)
CIE-LCHlch(42.64, 65.20, 338.69°)
OKLaboklab(53.1% 0.1815 -0.0639)
OKLCHoklch(53.1% 0.192 340.6)
XYZxyz(23.4260, 12.9162, 26.4535)
Luminance0.1291 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2D8D #2DAF4F
analogous
#902DAF #AF2D8D #AF2D4C
triadic
#AF2D8D #8DAF2D #2D8DAF
tetradic
#AF2D8D #AF902D #2DAF4F #2D4CAF
square
#AF2D8D #AF902D #2DAF4F #2D4CAF
split-complementary
#AF2D8D #4CAF2D #2DAF90
monochromatic
#4E143F #7E2066 #AF2D8D #D049AD #DD7AC3

Accessibility & contrast

On white

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

On black

3.58
#AF2D8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##AF2D8D#FFFFFF#000000##FFFFFF
##AF2D8D1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375790
Deuteranopia (green-blind)
#616C8A
Tritanopia (blue-blind)
#BA305A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af2d8d;
/* rgb */ color: rgb(175, 45, 141);
/* oklch */ color: oklch(53.1% 0.192 340.6);
Tailwind
colors: {
  custom: {
    50: '#cb73ae',
    500: '#af2d8d',
    950: '#000000',
  },
}
SCSS
$custom: #af2d8d;
$custom-light: #cb73ae;
$custom-dark: #000000;
JSON
{
  "hex": "#af2d8d",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 141
  },
  "hsl": {
    "h": 315.692,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.53099,
    "c": 0.19245,
    "h": 340.6
  },
  "luminance": 0.12914
}

Semantic roles & 50–950 ramp

primary
#AF2D8D
secondary
#73C588
accent
#E26F46
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF2D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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