#AF2897#AF2897

#AF2897 is a mid, highly saturated pink. Relative luminance 0.129; OKLCH L 53.2% C 0.204 H 336.5°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#AF2897
RGBrgb(175, 40, 151)
HSLhsl(311, 63%, 42%)
HSVhsv(311, 77%, 69%)
CMYKcmyk(0%, 77.1%, 13.7%, 31.4%)
CIE-LABlab(42.56, 63.71, -29.88)
CIE-LCHlch(42.56, 70.36, 334.88°)
OKLaboklab(53.2% 0.1874 -0.0814)
OKLCHoklch(53.2% 0.204 336.5)
XYZxyz(24.0243, 12.8682, 30.4907)
Luminance0.1287 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2897 #28AF40
analogous
#8428AF #AF2897 #AF2853
triadic
#AF2897 #97AF28 #2897AF
tetradic
#AF2897 #AF8428 #28AF40 #2853AF
square
#AF2897 #AF8428 #28AF40 #2853AF
split-complementary
#AF2897 #53AF28 #28AF84
monochromatic
#4B1141 #7D1D6C #AF2897 #D441B9 #DF73CC

Accessibility & contrast

On white

5.88
#AF2897 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2897
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2897#FFFFFF#000000##FFFFFF
##AF28971.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B589A
Deuteranopia (green-blind)
#5B6C94
Tritanopia (blue-blind)
#B8325E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af2897;
/* rgb */ color: rgb(175, 40, 151);
/* oklch */ color: oklch(53.2% 0.204 336.5);
Tailwind
colors: {
  custom: {
    50: '#cb71b6',
    500: '#af2897',
    950: '#000000',
  },
}
SCSS
$custom: #af2897;
$custom-light: #cb71b6;
$custom-dark: #000000;
JSON
{
  "hex": "#af2897",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 310.667,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.532,
    "c": 0.20432,
    "h": 336.5
  },
  "luminance": 0.12866
}

Semantic roles & 50–950 ramp

primary
#AF2897
secondary
#6DC67D
accent
#E65F42
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2897

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

Preview Lab → · Contrast checker → · Palette generator →

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