#AF3791#AF3791

#AF3791 is a mid, vivid pink. Relative luminance 0.139; OKLCH L 54.2% C 0.183 H 339.4°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#AF3791
RGBrgb(175, 55, 145)
HSLhsl(315, 52%, 45%)
HSVhsv(315, 69%, 69%)
CMYKcmyk(0%, 68.6%, 17.1%, 31.4%)
CIE-LABlab(44.08, 57.76, -23.89)
CIE-LCHlch(44.08, 62.50, 337.53°)
OKLaboklab(54.2% 0.1714 -0.0645)
OKLCHoklch(54.2% 0.183 339.4)
XYZxyz(24.1568, 13.8929, 28.1919)
Luminance0.1389 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3791 #37AF55
analogous
#9137AF #AF3791 #AF3755
triadic
#AF3791 #91AF37 #3791AF
tetradic
#AF3791 #AF9137 #37AF55 #3755AF
square
#AF3791 #AF9137 #37AF55 #3755AF
split-complementary
#AF3791 #55AF37 #37AF91
monochromatic
#521A44 #80286A #AF3791 #CB59AE #D987C5

Accessibility & contrast

On white

5.56
#AF3791 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#AF3791 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3791
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3791#FFFFFF#000000##FFFFFF
##AF37911.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5C94
Deuteranopia (green-blind)
#636F8E
Tritanopia (blue-blind)
#B93B5F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af3791;
/* rgb */ color: rgb(175, 55, 145);
/* oklch */ color: oklch(54.2% 0.183 339.4);
Tailwind
colors: {
  custom: {
    50: '#ca77b1',
    500: '#af3791',
    950: '#000000',
  },
}
SCSS
$custom: #af3791;
$custom-light: #ca77b1;
$custom-dark: #000000;
JSON
{
  "hex": "#af3791",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 145
  },
  "hsl": {
    "h": 315,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.54204,
    "c": 0.18314,
    "h": 339.4
  },
  "luminance": 0.13891
}

Semantic roles & 50–950 ramp

primary
#AF3791
secondary
#7FC390
accent
#DC704C
background
#FCF7FA
surface
#F9EEF5
border
#D2C9CF
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF3791

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

Preview Lab → · Contrast checker → · Palette generator →

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