#AF2E7D#AF2E7D

#AF2E7D is a mid, vivid pink. Relative luminance 0.125; OKLCH L 52.5% C 0.182 H 347.6°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#AF2E7D
RGBrgb(175, 46, 125)
HSLhsl(323, 58%, 43%)
HSVhsv(323, 74%, 69%)
CMYKcmyk(0%, 73.7%, 28.6%, 31.4%)
CIE-LABlab(42.08, 58.32, -14.76)
CIE-LCHlch(42.08, 60.15, 345.80°)
OKLaboklab(52.47% 0.1775 -0.0389)
OKLCHoklch(52.47% 0.182 347.6)
XYZxyz(22.3589, 12.5511, 20.6432)
Luminance0.1255 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2E7D #2EAF60
analogous
#A02EAF #AF2E7D #AF2E3C
triadic
#AF2E7D #7DAF2E #2E7DAF
tetradic
#AF2E7D #AFA02E #2EAF60 #2E3CAF
square
#AF2E7D #AFA02E #2EAF60 #2E3CAF
split-complementary
#AF2E7D #3CAF2E #2EAFA0
monochromatic
#4E1538 #7F215A #AF2E7D #D04B9C #DC7BB7

Accessibility & contrast

On white

5.98
#AF2E7D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#AF2E7D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2E7D
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2E7D#FFFFFF#000000##FFFFFF
##AF2E7D1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#40557F
Deuteranopia (green-blind)
#666B7A
Tritanopia (blue-blind)
#BB2951
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af2e7d;
/* rgb */ color: rgb(175, 46, 125);
/* oklch */ color: oklch(52.5% 0.182 347.6);
Tailwind
colors: {
  custom: {
    50: '#cb73a2',
    500: '#af2e7d',
    950: '#000000',
  },
}
SCSS
$custom: #af2e7d;
$custom-light: #cb73a2;
$custom-dark: #000000;
JSON
{
  "hex": "#af2e7d",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 125
  },
  "hsl": {
    "h": 323.256,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.52472,
    "c": 0.18168,
    "h": 347.6
  },
  "luminance": 0.12549
}

Semantic roles & 50–950 ramp

primary
#AF2E7D
secondary
#74C593
accent
#E28246
background
#FDF7FA
surface
#FAEDF3
border
#D3C8CD
text
#14090F
muted
#837B7F

Preview Lab

Preview with #AF2E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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