#AF2D8E#AF2D8E

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

Color values

HEX#AF2D8E
RGBrgb(175, 45, 142)
HSLhsl(315, 59%, 43%)
HSVhsv(315, 74%, 69%)
CMYKcmyk(0%, 74.3%, 18.9%, 31.4%)
CIE-LABlab(42.68, 60.88, -24.24)
CIE-LCHlch(42.68, 65.53, 338.29°)
OKLaboklab(53.15% 0.1817 -0.0654)
OKLCHoklch(53.15% 0.193 340.2)
XYZxyz(23.5007, 12.9460, 26.8471)
Luminance0.1294 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2D8E #2DAF4E
analogous
#8F2DAF #AF2D8E #AF2D4D
triadic
#AF2D8E #8EAF2D #2D8EAF
tetradic
#AF2D8E #AF8F2D #2DAF4E #2D4DAF
square
#AF2D8E #AF8F2D #2DAF4E #2D4DAF
split-complementary
#AF2D8E #4DAF2D #2DAF8F
monochromatic
#4E143F #7E2066 #AF2D8E #D049AE #DD7AC4

Accessibility & contrast

On white

5.85
#AF2D8E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2D8E
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2D8E#FFFFFF#000000##FFFFFF
##AF2D8E1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365891
Deuteranopia (green-blind)
#616C8B
Tritanopia (blue-blind)
#B9315A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af2d8e;
/* rgb */ color: rgb(175, 45, 142);
/* oklch */ color: oklch(53.1% 0.193 340.2);
Tailwind
colors: {
  custom: {
    50: '#cb73af',
    500: '#af2d8e',
    950: '#000000',
  },
}
SCSS
$custom: #af2d8e;
$custom-light: #cb73af;
$custom-dark: #000000;
JSON
{
  "hex": "#af2d8e",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 142
  },
  "hsl": {
    "h": 315.231,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.53146,
    "c": 0.19311,
    "h": 340.2
  },
  "luminance": 0.12944
}

Semantic roles & 50–950 ramp

primary
#AF2D8E
secondary
#73C588
accent
#E26D46
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF2D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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