#AF2D58#AF2D58

#AF2D58 is a mid, vivid pink. Relative luminance 0.117; OKLCH L 51.1% C 0.168 H 5.7°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#AF2D58
RGBrgb(175, 45, 88)
HSLhsl(340, 59%, 43%)
HSVhsv(340, 74%, 69%)
CMYKcmyk(0%, 74.3%, 49.7%, 31.4%)
CIE-LABlab(40.73, 54.74, 6.35)
CIE-LCHlch(40.73, 55.10, 6.61°)
OKLaboklab(51.08% 0.1672 0.0167)
OKLCHoklch(51.08% 0.168 5.7)
XYZxyz(20.3808, 11.6981, 10.4154)
Luminance0.1169 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2D58 #2DAF84
analogous
#AF2D99 #AF2D58 #AF432D
triadic
#AF2D58 #58AF2D #2D58AF
tetradic
#AF2D58 #99AF2D #2DAF84 #432DAF
square
#AF2D58 #99AF2D #2DAF84 #432DAF
split-complementary
#AF2D58 #2DAF43 #2D99AF
monochromatic
#4E1427 #7E2040 #AF2D58 #D04976 #DD7A9A

Accessibility & contrast

On white

6.29
#AF2D58 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#AF2D58 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2D58
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2D58#FFFFFF#000000##FFFFFF
##AF2D581.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C5059
Deuteranopia (green-blind)
#6F6955
Tritanopia (blue-blind)
#BF103F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af2d58;
/* rgb */ color: rgb(175, 45, 88);
/* oklch */ color: oklch(51.1% 0.168 5.7);
Tailwind
colors: {
  custom: {
    50: '#cd7186',
    500: '#af2d58',
    950: '#000000',
  },
}
SCSS
$custom: #af2d58;
$custom-light: #cd7186;
$custom-dark: #000000;
JSON
{
  "hex": "#af2d58",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 88
  },
  "hsl": {
    "h": 340.154,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.51083,
    "c": 0.16801,
    "h": 5.7
  },
  "luminance": 0.11695
}

Semantic roles & 50–950 ramp

primary
#AF2D58
secondary
#73C5AA
accent
#E2AE46
background
#FDF7F8
surface
#FAEDEF
border
#D3C8CA
text
#15080B
muted
#837B7C

Preview Lab

Preview with #AF2D58

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

Preview Lab → · Contrast checker → · Palette generator →

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