#AF3786#AF3786

#AF3786 is a mid, vivid pink. Relative luminance 0.136; OKLCH L 53.7% C 0.176 H 344.2°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#AF3786
RGBrgb(175, 55, 134)
HSLhsl(321, 52%, 45%)
HSVhsv(321, 69%, 69%)
CMYKcmyk(0%, 68.6%, 23.4%, 31.4%)
CIE-LABlab(43.61, 56.21, -17.94)
CIE-LCHlch(43.61, 59.00, 342.30°)
OKLaboklab(53.71% 0.1693 -0.0478)
OKLCHoklch(53.71% 0.176 344.2)
XYZxyz(23.3493, 13.5699, 23.9392)
Luminance0.1357 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3786 #37AF60
analogous
#9C37AF #AF3786 #AF374A
triadic
#AF3786 #86AF37 #3786AF
tetradic
#AF3786 #AF9C37 #37AF60 #374AAF
square
#AF3786 #AF9C37 #37AF60 #374AAF
split-complementary
#AF3786 #4AAF37 #37AF9C
monochromatic
#521A3F #802862 #AF3786 #CB59A4 #D987BD

Accessibility & contrast

On white

5.65
#AF3786 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#AF3786 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3786
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3786#FFFFFF#000000##FFFFFF
##AF37861.005.653.715.65
#FFFFFF5.651.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#435A88
Deuteranopia (green-blind)
#676E83
Tritanopia (blue-blind)
#BA3659
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af3786;
/* rgb */ color: rgb(175, 55, 134);
/* oklch */ color: oklch(53.7% 0.176 344.2);
Tailwind
colors: {
  custom: {
    50: '#cb77a9',
    500: '#af3786',
    950: '#000000',
  },
}
SCSS
$custom: #af3786;
$custom-light: #cb77a9;
$custom-dark: #000000;
JSON
{
  "hex": "#af3786",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 134
  },
  "hsl": {
    "h": 320.5,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.53709,
    "c": 0.17595,
    "h": 344.2
  },
  "luminance": 0.13568
}

Semantic roles & 50–950 ramp

primary
#AF3786
secondary
#7FC396
accent
#DC7D4C
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF3786

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

Preview Lab → · Contrast checker → · Palette generator →

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