#AF2D94#AF2D94

#AF2D94 is a mid, vivid pink. Relative luminance 0.131; OKLCH L 53.4% C 0.197 H 337.8°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#AF2D94
RGBrgb(175, 45, 148)
HSLhsl(312, 59%, 43%)
HSVhsv(312, 74%, 69%)
CMYKcmyk(0%, 74.3%, 15.4%, 31.4%)
CIE-LABlab(42.96, 61.73, -27.44)
CIE-LCHlch(42.96, 67.56, 336.03°)
OKLaboklab(53.44% 0.1825 -0.0745)
OKLCHoklch(53.44% 0.197 337.8)
XYZxyz(23.9634, 13.1311, 29.2837)
Luminance0.1313 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2D94 #2DAF48
analogous
#892DAF #AF2D94 #AF2D53
triadic
#AF2D94 #94AF2D #2D94AF
tetradic
#AF2D94 #AF892D #2DAF48 #2D53AF
square
#AF2D94 #AF892D #2DAF48 #2D53AF
split-complementary
#AF2D94 #53AF2D #2DAF89
monochromatic
#4E1442 #7E206B #AF2D94 #D049B4 #DD7AC8

Accessibility & contrast

On white

5.79
#AF2D94 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#AF2D94 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2D94
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2D94#FFFFFF#000000##FFFFFF
##AF2D941.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325997
Deuteranopia (green-blind)
#5E6D91
Tritanopia (blue-blind)
#B9345D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af2d94;
/* rgb */ color: rgb(175, 45, 148);
/* oklch */ color: oklch(53.4% 0.197 337.8);
Tailwind
colors: {
  custom: {
    50: '#cb73b3',
    500: '#af2d94',
    950: '#000000',
  },
}
SCSS
$custom: #af2d94;
$custom-light: #cb73b3;
$custom-dark: #000000;
JSON
{
  "hex": "#af2d94",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 148
  },
  "hsl": {
    "h": 312.462,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.53438,
    "c": 0.1971,
    "h": 337.8
  },
  "luminance": 0.13129
}

Semantic roles & 50–950 ramp

primary
#AF2D94
secondary
#73C584
accent
#E26646
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2D94

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

Preview Lab → · Contrast checker → · Palette generator →

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