#AF4E7B#AF4E7B

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

Color values

HEX#AF4E7B
RGBrgb(175, 78, 123)
HSLhsl(332, 38%, 50%)
HSVhsv(332, 55%, 69%)
CMYKcmyk(0%, 55.4%, 29.7%, 31.4%)
CIE-LABlab(46.97, 44.53, -6.17)
CIE-LCHlch(46.97, 44.95, 352.11°)
OKLaboklab(56.06% 0.135 -0.0158)
OKLCHoklch(56.06% 0.136 353.3)
XYZxyz(23.9797, 15.9951, 20.5595)
Luminance0.1599 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4E7B #4EAF82
analogous
#AF4EAC #AF4E7B #AF524E
triadic
#AF4E7B #7BAF4E #4E7BAF
tetradic
#AF4E7B #ACAF4E #4EAF82 #524EAF
square
#AF4E7B #ACAF4E #4EAF82 #524EAF
split-complementary
#AF4E7B #4EAF52 #4EACAF
monochromatic
#5A283F #853B5D #AF4E7B #C3789A #D6A2BA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF4E7B#FFFFFF#000000##FFFFFF
##AF4E7B1.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)
#5B647C
Deuteranopia (green-blind)
#757679
Tritanopia (blue-blind)
#BB495F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af4e7b;
/* rgb */ color: rgb(175, 78, 123);
/* oklch */ color: oklch(56.1% 0.136 353.3);
Tailwind
colors: {
  custom: {
    50: '#ca83a1',
    500: '#af4e7b',
    950: '#000000',
  },
}
SCSS
$custom: #af4e7b;
$custom-light: #ca83a1;
$custom-dark: #000000;
JSON
{
  "hex": "#af4e7b",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 123
  },
  "hsl": {
    "h": 332.165,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.56059,
    "c": 0.13595,
    "h": 353.3
  },
  "luminance": 0.15993
}

Semantic roles & 50–950 ramp

primary
#AF4E7B
secondary
#96C3AE
accent
#CE985A
background
#FCF8F9
surface
#F9EFF2
border
#D2CACC
text
#140B0E
muted
#827C7E

Preview Lab

Preview with #AF4E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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