#AF2891#AF2891

#AF2891 is a mid, highly saturated pink. Relative luminance 0.127; OKLCH L 52.9% C 0.200 H 338.8°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#AF2891
RGBrgb(175, 40, 145)
HSLhsl(313, 63%, 42%)
HSVhsv(313, 77%, 69%)
CMYKcmyk(0%, 77.1%, 17.1%, 31.4%)
CIE-LABlab(42.27, 62.86, -26.69)
CIE-LCHlch(42.27, 68.29, 336.99°)
OKLaboklab(52.9% 0.1868 -0.0723)
OKLCHoklch(52.9% 0.2 338.8)
XYZxyz(23.5494, 12.6782, 27.9895)
Luminance0.1268 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2891 #28AF46
analogous
#8928AF #AF2891 #AF284E
triadic
#AF2891 #91AF28 #2891AF
tetradic
#AF2891 #AF8928 #28AF46 #284EAF
square
#AF2891 #AF8928 #28AF46 #284EAF
split-complementary
#AF2891 #4EAF28 #28AF89
monochromatic
#4B113E #7D1D68 #AF2891 #D441B3 #DF73C7

Accessibility & contrast

On white

5.94
#AF2891 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#AF2891 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2891
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2891#FFFFFF#000000##FFFFFF
##AF28911.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305694
Deuteranopia (green-blind)
#5E6B8E
Tritanopia (blue-blind)
#B92F5A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af2891;
/* rgb */ color: rgb(175, 40, 145);
/* oklch */ color: oklch(52.9% 0.200 338.8);
Tailwind
colors: {
  custom: {
    50: '#cb71b1',
    500: '#af2891',
    950: '#000000',
  },
}
SCSS
$custom: #af2891;
$custom-light: #cb71b1;
$custom-dark: #000000;
JSON
{
  "hex": "#af2891",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 145
  },
  "hsl": {
    "h": 313.333,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.52897,
    "c": 0.20031,
    "h": 338.8
  },
  "luminance": 0.12676
}

Semantic roles & 50–950 ramp

primary
#AF2891
secondary
#6DC681
accent
#E66642
background
#FDF7FA
surface
#FAEDF5
border
#D3C8CF
text
#140911
muted
#837B80

Preview Lab

Preview with #AF2891

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

Preview Lab → · Contrast checker → · Palette generator →

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