#AF2D8A#AF2D8A

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

Color values

HEX#AF2D8A
RGBrgb(175, 45, 138)
HSLhsl(317, 59%, 43%)
HSVhsv(317, 74%, 69%)
CMYKcmyk(0%, 74.3%, 21.1%, 31.4%)
CIE-LABlab(42.50, 60.34, -22.08)
CIE-LCHlch(42.50, 64.25, 339.90°)
OKLaboklab(52.96% 0.1811 -0.0593)
OKLCHoklch(52.96% 0.191 341.9)
XYZxyz(23.2058, 12.8281, 25.2938)
Luminance0.1283 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2D8A #2DAF52
analogous
#932DAF #AF2D8A #AF2D49
triadic
#AF2D8A #8AAF2D #2D8AAF
tetradic
#AF2D8A #AF932D #2DAF52 #2D49AF
square
#AF2D8A #AF932D #2DAF52 #2D49AF
split-complementary
#AF2D8A #49AF2D #2DAF93
monochromatic
#4E143D #7E2064 #AF2D8A #D049AA #DD7AC1

Accessibility & contrast

On white

5.89
#AF2D8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2D8A
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2D8A#FFFFFF#000000##FFFFFF
##AF2D8A1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39578D
Deuteranopia (green-blind)
#626C87
Tritanopia (blue-blind)
#BA2F58
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af2d8a;
/* rgb */ color: rgb(175, 45, 138);
/* oklch */ color: oklch(53.0% 0.191 341.9);
Tailwind
colors: {
  custom: {
    50: '#cb73ac',
    500: '#af2d8a',
    950: '#000000',
  },
}
SCSS
$custom: #af2d8a;
$custom-light: #cb73ac;
$custom-dark: #000000;
JSON
{
  "hex": "#af2d8a",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 317.077,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.52958,
    "c": 0.19054,
    "h": 341.9
  },
  "luminance": 0.12826
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF2D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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