#AF2E52#AF2E52

#AF2E52 is a mid, vivid pink. Relative luminance 0.117; OKLCH L 51.0% C 0.166 H 8.9°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#AF2E52
RGBrgb(175, 46, 82)
HSLhsl(343, 58%, 43%)
HSVhsv(343, 74%, 69%)
CMYKcmyk(0%, 73.7%, 53.1%, 31.4%)
CIE-LABlab(40.70, 53.88, 10.09)
CIE-LCHlch(40.70, 54.82, 10.60°)
OKLaboklab(51.01% 0.1638 0.0258)
OKLCHoklch(51.01% 0.166 8.9)
XYZxyz(20.1810, 11.6799, 9.1728)
Luminance0.1168 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2E52 #2EAF8B
analogous
#AF2E92 #AF2E52 #AF4A2E
triadic
#AF2E52 #52AF2E #2E52AF
tetradic
#AF2E52 #92AF2E #2EAF8B #4A2EAF
square
#AF2E52 #92AF2E #2EAF8B #4A2EAF
split-complementary
#AF2E52 #2EAF4A #2E92AF
monochromatic
#4E1525 #7F213B #AF2E52 #D04B70 #DC7B96

Accessibility & contrast

On white

6.30
#AF2E52 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2E52
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2E52#FFFFFF#000000##FFFFFF
##AF2E521.006.303.346.30
#FFFFFF6.301.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E4F53
Deuteranopia (green-blind)
#70694F
Tritanopia (blue-blind)
#BF0E3D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af2e52;
/* rgb */ color: rgb(175, 46, 82);
/* oklch */ color: oklch(51.0% 0.166 8.9);
Tailwind
colors: {
  custom: {
    50: '#cd7182',
    500: '#af2e52',
    950: '#000000',
  },
}
SCSS
$custom: #af2e52;
$custom-light: #cd7182;
$custom-dark: #000000;
JSON
{
  "hex": "#af2e52",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 82
  },
  "hsl": {
    "h": 343.256,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.51011,
    "c": 0.1658,
    "h": 8.9
  },
  "luminance": 0.11677
}

Semantic roles & 50–950 ramp

primary
#AF2E52
secondary
#74C5AE
accent
#E2B646
background
#FDF7F7
surface
#FAEDEE
border
#D3C8C9
text
#15080A
muted
#837B7C

Preview Lab

Preview with #AF2E52

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

Preview Lab → · Contrast checker → · Palette generator →

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