#AF1F86#AF1F86

#AF1F86 is a mid, highly saturated pink. Relative luminance 0.118; OKLCH L 51.8% C 0.202 H 342.9°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#AF1F86
RGBrgb(175, 31, 134)
HSLhsl(317, 70%, 40%)
HSVhsv(317, 82%, 69%)
CMYKcmyk(0%, 82.3%, 23.4%, 31.4%)
CIE-LABlab(40.92, 63.82, -22.07)
CIE-LCHlch(40.92, 67.52, 340.92°)
OKLaboklab(51.76% 0.1927 -0.0592)
OKLCHoklch(51.76% 0.202 342.9)
XYZxyz(22.4732, 11.8176, 23.6472)
Luminance0.1182 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF1F86 #1FAF48
analogous
#901FAF #AF1F86 #AF1F3E
triadic
#AF1F86 #86AF1F #1F86AF
tetradic
#AF1F86 #AF901F #1FAF48 #1F3EAF
square
#AF1F86 #AF901F #1FAF48 #1F3EAF
split-complementary
#AF1F86 #3EAF1F #1FAF90
monochromatic
#470D36 #7B165E #AF1F86 #DA31AA #E465C0

Accessibility & contrast

On white

6.24
#AF1F86 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#AF1F86 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF1F86
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF1F86#FFFFFF#000000##FFFFFF
##AF1F861.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315289
Deuteranopia (green-blind)
#5F6983
Tritanopia (blue-blind)
#BB2052
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af1f86;
/* rgb */ color: rgb(175, 31, 134);
/* oklch */ color: oklch(51.8% 0.202 342.9);
Tailwind
colors: {
  custom: {
    50: '#cb6da9',
    500: '#af1f86',
    950: '#000000',
  },
}
SCSS
$custom: #af1f86;
$custom-light: #cb6da9;
$custom-dark: #000000;
JSON
{
  "hex": "#af1f86",
  "rgb": {
    "r": 175,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 317.083,
    "s": 69.903,
    "l": 40.392
  },
  "oklch": {
    "l": 0.51759,
    "c": 0.20162,
    "h": 342.9
  },
  "luminance": 0.11815
}

Semantic roles & 50–950 ramp

primary
#AF1F86
secondary
#61C97F
accent
#ED6E3B
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #AF1F86

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

Preview Lab → · Contrast checker → · Palette generator →

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