#AF3F91#AF3F91

#AF3F91 is a mid, vivid pink. Relative luminance 0.147; OKLCH L 55.1% C 0.172 H 339.8°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#AF3F91
RGBrgb(175, 63, 145)
HSLhsl(316, 47%, 47%)
HSVhsv(316, 64%, 69%)
CMYKcmyk(0%, 64%, 17.1%, 31.4%)
CIE-LABlab(45.24, 54.53, -22.09)
CIE-LCHlch(45.24, 58.83, 337.95°)
OKLaboklab(55.05% 0.1617 -0.0595)
OKLCHoklch(55.05% 0.172 339.8)
XYZxyz(24.5681, 14.7155, 28.3290)
Luminance0.1471 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3F91 #3FAF5D
analogous
#953FAF #AF3F91 #AF3F59
triadic
#AF3F91 #91AF3F #3F91AF
tetradic
#AF3F91 #AF953F #3FAF5D #3F59AF
square
#AF3F91 #AF953F #3FAF5D #3F59AF
split-complementary
#AF3F91 #59AF3F #3FAF95
monochromatic
#551F46 #822F6C #AF3F91 #C764AD #D791C5

Accessibility & contrast

On white

5.33
#AF3F91 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#AF3F91 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3F91
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3F91#FFFFFF#000000##FFFFFF
##AF3F911.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#456093
Deuteranopia (green-blind)
#67728E
Tritanopia (blue-blind)
#B94262
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af3f91;
/* rgb */ color: rgb(175, 63, 145);
/* oklch */ color: oklch(55.1% 0.172 339.8);
Tailwind
colors: {
  custom: {
    50: '#ca7bb1',
    500: '#af3f91',
    950: '#000000',
  },
}
SCSS
$custom: #af3f91;
$custom-light: #ca7bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#af3f91",
  "rgb": {
    "r": 175,
    "g": 63,
    "b": 145
  },
  "hsl": {
    "h": 316.071,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.55054,
    "c": 0.17231,
    "h": 339.8
  },
  "luminance": 0.14713
}

Semantic roles & 50–950 ramp

primary
#AF3F91
secondary
#87C397
accent
#D77551
background
#FCF7FA
surface
#F9EEF5
border
#D2C9CF
text
#140A10
muted
#827C7F

Preview Lab

Preview with #AF3F91

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

Preview Lab → · Contrast checker → · Palette generator →

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