#AF3978#AF3978

#AF3978 is a mid, vivid pink. Relative luminance 0.134; OKLCH L 53.3% C 0.165 H 351.2°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#AF3978
RGBrgb(175, 57, 120)
HSLhsl(328, 51%, 45%)
HSVhsv(328, 67%, 69%)
CMYKcmyk(0%, 67.4%, 31.4%, 31.4%)
CIE-LABlab(43.36, 53.60, -9.74)
CIE-LCHlch(43.36, 54.48, 349.70°)
OKLaboklab(53.35% 0.1634 -0.0253)
OKLCHoklch(53.35% 0.165 351.2)
XYZxyz(22.5336, 13.3987, 19.1652)
Luminance0.1340 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3978 #39AF70
analogous
#AB39AF #AF3978 #AF393D
triadic
#AF3978 #78AF39 #3978AF
tetradic
#AF3978 #AFAB39 #39AF70 #393DAF
square
#AF3978 #AFAB39 #39AF70 #393DAF
split-complementary
#AF3978 #3DAF39 #39AFAB
monochromatic
#531B39 #812A58 #AF3978 #CA5B96 #D98AB4

Accessibility & contrast

On white

5.71
#AF3978 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#AF3978 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3978
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3978#FFFFFF#000000##FFFFFF
##AF39781.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B597A
Deuteranopia (green-blind)
#6C6E75
Tritanopia (blue-blind)
#BC3253
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af3978;
/* rgb */ color: rgb(175, 57, 120);
/* oklch */ color: oklch(53.3% 0.165 351.2);
Tailwind
colors: {
  custom: {
    50: '#cb789f',
    500: '#af3978',
    950: '#000000',
  },
}
SCSS
$custom: #af3978;
$custom-light: #cb789f;
$custom-dark: #000000;
JSON
{
  "hex": "#af3978",
  "rgb": {
    "r": 175,
    "g": 57,
    "b": 120
  },
  "hsl": {
    "h": 327.966,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.53348,
    "c": 0.16537,
    "h": 351.2
  },
  "luminance": 0.13396
}

Semantic roles & 50–950 ramp

primary
#AF3978
secondary
#81C3A0
accent
#DA8F4D
background
#FCF7F9
surface
#F9EEF2
border
#D2C9CC
text
#14090E
muted
#827B7E

Preview Lab

Preview with #AF3978

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

Preview Lab → · Contrast checker → · Palette generator →

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