#AF1F89#AF1F89

#AF1F89 is a mid, highly saturated pink. Relative luminance 0.119; OKLCH L 51.9% C 0.203 H 341.7°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#AF1F89
RGBrgb(175, 31, 137)
HSLhsl(316, 70%, 40%)
HSVhsv(316, 82%, 69%)
CMYKcmyk(0%, 82.3%, 21.7%, 31.4%)
CIE-LABlab(41.06, 64.20, -23.70)
CIE-LCHlch(41.06, 68.43, 339.74°)
OKLaboklab(51.9% 0.1932 -0.0638)
OKLCHoklch(51.9% 0.203 341.7)
XYZxyz(22.6854, 11.9025, 24.7648)
Luminance0.1190 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF1F89 #1FAF45
analogous
#8D1FAF #AF1F89 #AF1F41
triadic
#AF1F89 #89AF1F #1F89AF
tetradic
#AF1F89 #AF8D1F #1FAF45 #1F41AF
square
#AF1F89 #AF8D1F #1FAF45 #1F41AF
split-complementary
#AF1F89 #41AF1F #1FAF8D
monochromatic
#470D38 #7B1660 #AF1F89 #DA31AE #E465C2

Accessibility & contrast

On white

6.21
#AF1F89 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#AF1F89 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF1F89
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF1F89#FFFFFF#000000##FFFFFF
##AF1F891.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F528C
Deuteranopia (green-blind)
#5E6986
Tritanopia (blue-blind)
#BA2253
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af1f89;
/* rgb */ color: rgb(175, 31, 137);
/* oklch */ color: oklch(51.9% 0.203 341.7);
Tailwind
colors: {
  custom: {
    50: '#cb6eab',
    500: '#af1f89',
    950: '#000000',
  },
}
SCSS
$custom: #af1f89;
$custom-light: #cb6eab;
$custom-dark: #000000;
JSON
{
  "hex": "#af1f89",
  "rgb": {
    "r": 175,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 315.833,
    "s": 69.903,
    "l": 40.392
  },
  "oklch": {
    "l": 0.51901,
    "c": 0.20342,
    "h": 341.7
  },
  "luminance": 0.119
}

Semantic roles & 50–950 ramp

primary
#AF1F89
secondary
#61C97C
accent
#ED6A3B
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #AF1F89

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

Preview Lab → · Contrast checker → · Palette generator →

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