#AF2D8F#AF2D8F

#AF2D8F is a mid, vivid pink. Relative luminance 0.130; OKLCH L 53.2% C 0.194 H 339.8°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#AF2D8F
RGBrgb(175, 45, 143)
HSLhsl(315, 59%, 43%)
HSVhsv(315, 74%, 69%)
CMYKcmyk(0%, 74.3%, 18.3%, 31.4%)
CIE-LABlab(42.73, 61.02, -24.77)
CIE-LCHlch(42.73, 65.86, 337.90°)
OKLaboklab(53.19% 0.1818 -0.0669)
OKLCHoklch(53.19% 0.194 339.8)
XYZxyz(23.5761, 12.9762, 27.2443)
Luminance0.1297 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2D8F #2DAF4D
analogous
#8E2DAF #AF2D8F #AF2D4E
triadic
#AF2D8F #8FAF2D #2D8FAF
tetradic
#AF2D8F #AF8E2D #2DAF4D #2D4EAF
square
#AF2D8F #AF8E2D #2DAF4D #2D4EAF
split-complementary
#AF2D8F #4EAF2D #2DAF8E
monochromatic
#4E143F #7E2067 #AF2D8F #D049AF #DD7AC4

Accessibility & contrast

On white

5.84
#AF2D8F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#AF2D8F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2D8F
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2D8F#FFFFFF#000000##FFFFFF
##AF2D8F1.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365892
Deuteranopia (green-blind)
#606C8C
Tritanopia (blue-blind)
#B9325B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af2d8f;
/* rgb */ color: rgb(175, 45, 143);
/* oklch */ color: oklch(53.2% 0.194 339.8);
Tailwind
colors: {
  custom: {
    50: '#cb73b0',
    500: '#af2d8f',
    950: '#000000',
  },
}
SCSS
$custom: #af2d8f;
$custom-light: #cb73b0;
$custom-dark: #000000;
JSON
{
  "hex": "#af2d8f",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 143
  },
  "hsl": {
    "h": 314.769,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.53194,
    "c": 0.19376,
    "h": 339.8
  },
  "luminance": 0.12974
}

Semantic roles & 50–950 ramp

primary
#AF2D8F
secondary
#73C587
accent
#E26C46
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF2D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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