#AF3F97#AF3F97

#AF3F97 is a mid, vivid pink. Relative luminance 0.149; OKLCH L 55.3% C 0.177 H 337.2°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#AF3F97
RGBrgb(175, 63, 151)
HSLhsl(313, 47%, 47%)
HSVhsv(313, 64%, 69%)
CMYKcmyk(0%, 64%, 13.7%, 31.4%)
CIE-LABlab(45.50, 55.44, -25.29)
CIE-LCHlch(45.50, 60.93, 335.48°)
OKLaboklab(55.33% 0.1628 -0.0685)
OKLCHoklch(55.33% 0.177 337.2)
XYZxyz(25.0430, 14.9055, 30.8302)
Luminance0.1490 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3F97 #3FAF57
analogous
#8F3FAF #AF3F97 #AF3F5F
triadic
#AF3F97 #97AF3F #3F97AF
tetradic
#AF3F97 #AF8F3F #3FAF57 #3F5FAF
square
#AF3F97 #AF8F3F #3FAF57 #3F5FAF
split-complementary
#AF3F97 #5FAF3F #3FAF8F
monochromatic
#551F49 #822F70 #AF3F97 #C764B2 #D791C8

Accessibility & contrast

On white

5.28
#AF3F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#AF3F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3F97
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3F97#FFFFFF#000000##FFFFFF
##AF3F971.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#42619A
Deuteranopia (green-blind)
#657294
Tritanopia (blue-blind)
#B84465
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af3f97;
/* rgb */ color: rgb(175, 63, 151);
/* oklch */ color: oklch(55.3% 0.177 337.2);
Tailwind
colors: {
  custom: {
    50: '#ca7cb6',
    500: '#af3f97',
    950: '#000000',
  },
}
SCSS
$custom: #af3f97;
$custom-light: #ca7cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#af3f97",
  "rgb": {
    "r": 175,
    "g": 63,
    "b": 151
  },
  "hsl": {
    "h": 312.857,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.55332,
    "c": 0.17661,
    "h": 337.2
  },
  "luminance": 0.14903
}

Semantic roles & 50–950 ramp

primary
#AF3F97
secondary
#87C394
accent
#D76E51
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A11
muted
#827C80

Preview Lab

Preview with #AF3F97

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

Preview Lab → · Contrast checker → · Palette generator →

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