#AF2D8B#AF2D8B

#AF2D8B is a mid, vivid pink. Relative luminance 0.129; OKLCH L 53.0% C 0.191 H 341.4°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#AF2D8B
RGBrgb(175, 45, 139)
HSLhsl(317, 59%, 43%)
HSVhsv(317, 74%, 69%)
CMYKcmyk(0%, 74.3%, 20.6%, 31.4%)
CIE-LABlab(42.55, 60.47, -22.62)
CIE-LCHlch(42.55, 64.56, 339.49°)
OKLaboklab(53.01% 0.1812 -0.0608)
OKLCHoklch(53.01% 0.191 341.4)
XYZxyz(23.2785, 12.8572, 25.6768)
Luminance0.1285 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2D8B #2DAF51
analogous
#922DAF #AF2D8B #AF2D4A
triadic
#AF2D8B #8BAF2D #2D8BAF
tetradic
#AF2D8B #AF922D #2DAF51 #2D4AAF
square
#AF2D8B #AF922D #2DAF51 #2D4AAF
split-complementary
#AF2D8B #4AAF2D #2DAF92
monochromatic
#4E143E #7E2064 #AF2D8B #D049AB #DD7AC1

Accessibility & contrast

On white

5.88
#AF2D8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#AF2D8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2D8B
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2D8B#FFFFFF#000000##FFFFFF
##AF2D8B1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38578E
Deuteranopia (green-blind)
#626C88
Tritanopia (blue-blind)
#BA2F58
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af2d8b;
/* rgb */ color: rgb(175, 45, 139);
/* oklch */ color: oklch(53.0% 0.191 341.4);
Tailwind
colors: {
  custom: {
    50: '#cb73ad',
    500: '#af2d8b',
    950: '#000000',
  },
}
SCSS
$custom: #af2d8b;
$custom-light: #cb73ad;
$custom-dark: #000000;
JSON
{
  "hex": "#af2d8b",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 139
  },
  "hsl": {
    "h": 316.615,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.53005,
    "c": 0.19117,
    "h": 341.4
  },
  "luminance": 0.12855
}

Semantic roles & 50–950 ramp

primary
#AF2D8B
secondary
#73C58A
accent
#E27146
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF2D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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