#AF3771#AF3771

#AF3771 is a mid, vivid pink. Relative luminance 0.130; OKLCH L 52.9% C 0.165 H 354.5°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#AF3771
RGBrgb(175, 55, 113)
HSLhsl(331, 52%, 45%)
HSVhsv(331, 69%, 69%)
CMYKcmyk(0%, 68.6%, 35.4%, 31.4%)
CIE-LABlab(42.83, 53.57, -6.22)
CIE-LCHlch(42.83, 53.93, 353.37°)
OKLaboklab(52.88% 0.1639 -0.0157)
OKLCHoklch(52.88% 0.165 354.5)
XYZxyz(22.0273, 13.0411, 16.9768)
Luminance0.1304 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3771 #37AF75
analogous
#AF37AD #AF3771 #AF3937
triadic
#AF3771 #71AF37 #3771AF
tetradic
#AF3771 #ADAF37 #37AF75 #3937AF
square
#AF3771 #ADAF37 #37AF75 #3937AF
split-complementary
#AF3771 #37AF39 #37ADAF
monochromatic
#521A35 #802853 #AF3771 #CB5990 #D987AF

Accessibility & contrast

On white

5.82
#AF3771 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#AF3771 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3771
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3771#FFFFFF#000000##FFFFFF
##AF37711.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C5773
Deuteranopia (green-blind)
#6D6D6E
Tritanopia (blue-blind)
#BC2D4F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af3771;
/* rgb */ color: rgb(175, 55, 113);
/* oklch */ color: oklch(52.9% 0.165 354.5);
Tailwind
colors: {
  custom: {
    50: '#cb7699',
    500: '#af3771',
    950: '#000000',
  },
}
SCSS
$custom: #af3771;
$custom-light: #cb7699;
$custom-dark: #000000;
JSON
{
  "hex": "#af3771",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 113
  },
  "hsl": {
    "h": 331,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.52876,
    "c": 0.16464,
    "h": 354.5
  },
  "luminance": 0.13039
}

Semantic roles & 50–950 ramp

primary
#AF3771
secondary
#7FC3A2
accent
#DC964C
background
#FDF7F9
surface
#FAEEF2
border
#D3C9CC
text
#14090E
muted
#837B7E

Preview Lab

Preview with #AF3771

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

Preview Lab → · Contrast checker → · Palette generator →

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