#AF4E7C#AF4E7C

#AF4E7C is a mid, vivid pink. Relative luminance 0.160; OKLCH L 56.1% C 0.136 H 352.7°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#AF4E7C
RGBrgb(175, 78, 124)
HSLhsl(332, 38%, 50%)
HSVhsv(332, 55%, 69%)
CMYKcmyk(0%, 55.4%, 29.1%, 31.4%)
CIE-LABlab(47.00, 44.66, -6.73)
CIE-LCHlch(47.00, 45.17, 351.43°)
OKLaboklab(56.09% 0.1354 -0.0173)
OKLCHoklch(56.09% 0.136 352.7)
XYZxyz(24.0427, 16.0202, 20.8909)
Luminance0.1602 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4E7C #4EAF81
analogous
#AF4EAD #AF4E7C #AF504E
triadic
#AF4E7C #7CAF4E #4E7CAF
tetradic
#AF4E7C #ADAF4E #4EAF81 #504EAF
square
#AF4E7C #ADAF4E #4EAF81 #504EAF
split-complementary
#AF4E7C #4EAF50 #4EADAF
monochromatic
#5A2840 #853B5E #AF4E7C #C3789B #D6A2BA

Accessibility & contrast

On white

5.00
#AF4E7C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#AF4E7C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4E7C
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4E7C#FFFFFF#000000##FFFFFF
##AF4E7C1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B657D
Deuteranopia (green-blind)
#75767A
Tritanopia (blue-blind)
#BB4960
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af4e7c;
/* rgb */ color: rgb(175, 78, 124);
/* oklch */ color: oklch(56.1% 0.136 352.7);
Tailwind
colors: {
  custom: {
    50: '#ca83a1',
    500: '#af4e7c',
    950: '#000000',
  },
}
SCSS
$custom: #af4e7c;
$custom-light: #ca83a1;
$custom-dark: #000000;
JSON
{
  "hex": "#af4e7c",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 124
  },
  "hsl": {
    "h": 331.546,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.56094,
    "c": 0.13646,
    "h": 352.7
  },
  "luminance": 0.16018
}

Semantic roles & 50–950 ramp

primary
#AF4E7C
secondary
#96C3AE
accent
#CE975A
background
#FCF8F9
surface
#F9EFF2
border
#D2CACC
text
#140B0F
muted
#827C7E

Preview Lab

Preview with #AF4E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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