#AF2D5F#AF2D5F

#AF2D5F is a mid, vivid pink. Relative luminance 0.118; OKLCH L 51.3% C 0.170 H 2.1°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#AF2D5F
RGBrgb(175, 45, 95)
HSLhsl(337, 59%, 43%)
HSVhsv(337, 74%, 69%)
CMYKcmyk(0%, 74.3%, 45.7%, 31.4%)
CIE-LABlab(40.93, 55.37, 2.22)
CIE-LCHlch(40.93, 55.42, 2.29°)
OKLaboklab(51.29% 0.1697 0.0063)
OKLCHoklch(51.29% 0.17 2.1)
XYZxyz(20.6848, 11.8197, 12.0164)
Luminance0.1182 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2D5F #2DAF7D
analogous
#AF2DA0 #AF2D5F #AF3C2D
triadic
#AF2D5F #5FAF2D #2D5FAF
tetradic
#AF2D5F #A0AF2D #2DAF7D #3C2DAF
square
#AF2D5F #A0AF2D #2DAF7D #3C2DAF
split-complementary
#AF2D5F #2DAF3C #2DA0AF
monochromatic
#4E142A #7E2045 #AF2D5F #D0497D #DD7AA0

Accessibility & contrast

On white

6.24
#AF2D5F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#AF2D5F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2D5F
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2D5F#FFFFFF#000000##FFFFFF
##AF2D5F1.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B5060
Deuteranopia (green-blind)
#6D6A5C
Tritanopia (blue-blind)
#BE1542
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af2d5f;
/* rgb */ color: rgb(175, 45, 95);
/* oklch */ color: oklch(51.3% 0.170 2.1);
Tailwind
colors: {
  custom: {
    50: '#cc718c',
    500: '#af2d5f',
    950: '#000000',
  },
}
SCSS
$custom: #af2d5f;
$custom-light: #cc718c;
$custom-dark: #000000;
JSON
{
  "hex": "#af2d5f",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 95
  },
  "hsl": {
    "h": 336.923,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.51292,
    "c": 0.16983,
    "h": 2.1
  },
  "luminance": 0.11817
}

Semantic roles & 50–950 ramp

primary
#AF2D5F
secondary
#73C5A5
accent
#E2A646
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14080C
muted
#837B7D

Preview Lab

Preview with #AF2D5F

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

Preview Lab → · Contrast checker → · Palette generator →

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