#AF2D8C#AF2D8C

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

Color values

HEX#AF2D8C
RGBrgb(175, 45, 140)
HSLhsl(316, 59%, 43%)
HSVhsv(316, 74%, 69%)
CMYKcmyk(0%, 74.3%, 20%, 31.4%)
CIE-LABlab(42.59, 60.61, -23.16)
CIE-LCHlch(42.59, 64.88, 339.09°)
OKLaboklab(53.05% 0.1814 -0.0624)
OKLCHoklch(53.05% 0.192 341)
XYZxyz(23.3519, 12.8865, 26.0634)
Luminance0.1288 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2D8C #2DAF50
analogous
#912DAF #AF2D8C #AF2D4B
triadic
#AF2D8C #8CAF2D #2D8CAF
tetradic
#AF2D8C #AF912D #2DAF50 #2D4BAF
square
#AF2D8C #AF912D #2DAF50 #2D4BAF
split-complementary
#AF2D8C #4BAF2D #2DAF91
monochromatic
#4E143E #7E2065 #AF2D8C #D049AC #DD7AC2

Accessibility & contrast

On white

5.87
#AF2D8C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2D8C
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2D8C#FFFFFF#000000##FFFFFF
##AF2D8C1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38578F
Deuteranopia (green-blind)
#616C89
Tritanopia (blue-blind)
#BA3059
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af2d8c;
/* rgb */ color: rgb(175, 45, 140);
/* oklch */ color: oklch(53.1% 0.192 341.0);
Tailwind
colors: {
  custom: {
    50: '#cb73ae',
    500: '#af2d8c',
    950: '#000000',
  },
}
SCSS
$custom: #af2d8c;
$custom-light: #cb73ae;
$custom-dark: #000000;
JSON
{
  "hex": "#af2d8c",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 140
  },
  "hsl": {
    "h": 316.154,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.53051,
    "c": 0.19181,
    "h": 341
  },
  "luminance": 0.12884
}

Semantic roles & 50–950 ramp

primary
#AF2D8C
secondary
#73C589
accent
#E27046
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF2D8C

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

Preview Lab → · Contrast checker → · Palette generator →

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