#AF207F#AF207F

#AF207F is a mid, vivid pink. Relative luminance 0.117; OKLCH L 51.5% C 0.197 H 345.9°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#AF207F
RGBrgb(175, 32, 127)
HSLhsl(320, 69%, 41%)
HSVhsv(320, 82%, 69%)
CMYKcmyk(0%, 81.7%, 27.4%, 31.4%)
CIE-LABlab(40.71, 62.70, -18.09)
CIE-LCHlch(40.71, 65.26, 343.90°)
OKLaboklab(51.5% 0.1908 -0.0481)
OKLCHoklch(51.5% 0.197 345.9)
XYZxyz(22.0275, 11.6818, 21.1694)
Luminance0.1168 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF207F #20AF50
analogous
#9720AF #AF207F #AF2037
triadic
#AF207F #7FAF20 #207FAF
tetradic
#AF207F #AF9720 #20AF50 #2037AF
square
#AF207F #AF9720 #20AF50 #2037AF
split-complementary
#AF207F #37AF20 #20AF97
monochromatic
#480D34 #7B1759 #AF207F #DA33A2 #E366B9

Accessibility & contrast

On white

6.30
#AF207F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#AF207F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF207F
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF207F#FFFFFF#000000##FFFFFF
##AF207F1.006.303.346.30
#FFFFFF6.301.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365181
Deuteranopia (green-blind)
#62697C
Tritanopia (blue-blind)
#BB1B4E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af207f;
/* rgb */ color: rgb(175, 32, 127);
/* oklch */ color: oklch(51.5% 0.197 345.9);
Tailwind
colors: {
  custom: {
    50: '#cb6da4',
    500: '#af207f',
    950: '#000000',
  },
}
SCSS
$custom: #af207f;
$custom-light: #cb6da4;
$custom-dark: #000000;
JSON
{
  "hex": "#af207f",
  "rgb": {
    "r": 175,
    "g": 32,
    "b": 127
  },
  "hsl": {
    "h": 320.14,
    "s": 69.082,
    "l": 40.588
  },
  "oklch": {
    "l": 0.51502,
    "c": 0.19675,
    "h": 345.9
  },
  "luminance": 0.11679
}

Semantic roles & 50–950 ramp

primary
#AF207F
secondary
#62C885
accent
#EC773C
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#14080F
muted
#837B7F

Preview Lab

Preview with #AF207F

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

Preview Lab → · Contrast checker → · Palette generator →

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