#AF208C#AF208C

#AF208C is a mid, highly saturated pink. Relative luminance 0.120; OKLCH L 52.1% C 0.204 H 340.6°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#AF208C
RGBrgb(175, 32, 140)
HSLhsl(315, 69%, 41%)
HSVhsv(315, 82%, 69%)
CMYKcmyk(0%, 81.7%, 20%, 31.4%)
CIE-LABlab(41.28, 64.35, -25.19)
CIE-LCHlch(41.28, 69.10, 338.62°)
OKLaboklab(52.11% 0.1928 -0.068)
OKLCHoklch(52.11% 0.204 340.6)
XYZxyz(22.9301, 12.0428, 25.9228)
Luminance0.1204 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF208C #20AF43
analogous
#8A20AF #AF208C #AF2045
triadic
#AF208C #8CAF20 #208CAF
tetradic
#AF208C #AF8A20 #20AF43 #2045AF
square
#AF208C #AF8A20 #20AF43 #2045AF
split-complementary
#AF208C #45AF20 #20AF8A
monochromatic
#480D39 #7B1763 #AF208C #DA33B1 #E366C5

Accessibility & contrast

On white

6.16
#AF208C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#AF208C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF208C
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF208C#FFFFFF#000000##FFFFFF
##AF208C1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D538F
Deuteranopia (green-blind)
#5D6989
Tritanopia (blue-blind)
#BA2555
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af208c;
/* rgb */ color: rgb(175, 32, 140);
/* oklch */ color: oklch(52.1% 0.204 340.6);
Tailwind
colors: {
  custom: {
    50: '#cb6eae',
    500: '#af208c',
    950: '#000000',
  },
}
SCSS
$custom: #af208c;
$custom-light: #cb6eae;
$custom-dark: #000000;
JSON
{
  "hex": "#af208c",
  "rgb": {
    "r": 175,
    "g": 32,
    "b": 140
  },
  "hsl": {
    "h": 314.685,
    "s": 69.082,
    "l": 40.588
  },
  "oklch": {
    "l": 0.52107,
    "c": 0.20444,
    "h": 340.6
  },
  "luminance": 0.1204
}

Semantic roles & 50–950 ramp

primary
#AF208C
secondary
#62C87B
accent
#EC673C
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #AF208C

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

Preview Lab → · Contrast checker → · Palette generator →

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