#AF2981#AF2981

#AF2981 is a mid, vivid pink. Relative luminance 0.123; OKLCH L 52.2% C 0.189 H 345.5°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#AF2981
RGBrgb(175, 41, 129)
HSLhsl(321, 62%, 42%)
HSVhsv(321, 77%, 69%)
CMYKcmyk(0%, 76.6%, 26.3%, 31.4%)
CIE-LABlab(41.67, 60.43, -17.85)
CIE-LCHlch(41.67, 63.01, 343.55°)
OKLaboklab(52.23% 0.1834 -0.0474)
OKLCHoklch(52.23% 0.189 345.5)
XYZxyz(22.4356, 12.2873, 21.9548)
Luminance0.1229 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2981 #29AF57
analogous
#9A29AF #AF2981 #AF293E
triadic
#AF2981 #81AF29 #2981AF
tetradic
#AF2981 #AF9A29 #29AF57 #293EAF
square
#AF2981 #AF9A29 #29AF57 #293EAF
split-complementary
#AF2981 #3EAF29 #29AF9A
monochromatic
#4C1238 #7D1D5C #AF2981 #D342A1 #DE74BA

Accessibility & contrast

On white

6.07
#AF2981 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#AF2981 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2981
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2981#FFFFFF#000000##FFFFFF
##AF29811.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5483
Deuteranopia (green-blind)
#646A7E
Tritanopia (blue-blind)
#BB2652
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af2981;
/* rgb */ color: rgb(175, 41, 129);
/* oklch */ color: oklch(52.2% 0.189 345.5);
Tailwind
colors: {
  custom: {
    50: '#cb71a5',
    500: '#af2981',
    950: '#000000',
  },
}
SCSS
$custom: #af2981;
$custom-light: #cb71a5;
$custom-dark: #000000;
JSON
{
  "hex": "#af2981",
  "rgb": {
    "r": 175,
    "g": 41,
    "b": 129
  },
  "hsl": {
    "h": 320.597,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.52227,
    "c": 0.1894,
    "h": 345.5
  },
  "luminance": 0.12285
}

Semantic roles & 50–950 ramp

primary
#AF2981
secondary
#6EC68C
accent
#E57A43
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#14090F
muted
#837B7F

Preview Lab

Preview with #AF2981

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

Preview Lab → · Contrast checker → · Palette generator →

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