#AF4A8F#AF4A8F

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

Color values

HEX#AF4A8F
RGBrgb(175, 74, 143)
HSLhsl(319, 41%, 49%)
HSVhsv(319, 58%, 69%)
CMYKcmyk(0%, 57.7%, 18.3%, 31.4%)
CIE-LABlab(46.97, 49.30, -18.23)
CIE-LCHlch(46.97, 52.57, 339.71°)
OKLaboklab(56.3% 0.1465 -0.0488)
OKLCHoklch(56.3% 0.154 341.6)
XYZxyz(25.0864, 15.9968, 27.7477)
Luminance0.1600 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4A8F #4AAF6A
analogous
#9D4AAF #AF4A8F #AF4A5D
triadic
#AF4A8F #8FAF4A #4A8FAF
tetradic
#AF4A8F #AF9D4A #4AAF6A #4A5DAF
square
#AF4A8F #AF9D4A #4AAF6A #4A5DAF
split-complementary
#AF4A8F #5DAF4A #4AAF9D
monochromatic
#592649 #84386C #AF4A8F #C473AA #D69EC4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF4A8F#FFFFFF#000000##FFFFFF
##AF4A8F1.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)
#506591
Deuteranopia (green-blind)
#6D758C
Tritanopia (blue-blind)
#B94B66
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af4a8f;
/* rgb */ color: rgb(175, 74, 143);
/* oklch */ color: oklch(56.3% 0.154 341.6);
Tailwind
colors: {
  custom: {
    50: '#ca81b0',
    500: '#af4a8f',
    950: '#000000',
  },
}
SCSS
$custom: #af4a8f;
$custom-light: #ca81b0;
$custom-dark: #000000;
JSON
{
  "hex": "#af4a8f",
  "rgb": {
    "r": 175,
    "g": 74,
    "b": 143
  },
  "hsl": {
    "h": 319.01,
    "s": 40.562,
    "l": 48.824
  },
  "oklch": {
    "l": 0.56299,
    "c": 0.15441,
    "h": 341.6
  },
  "luminance": 0.15995
}

Semantic roles & 50–950 ramp

primary
#AF4A8F
secondary
#92C2A2
accent
#D07E57
background
#FCF8FA
surface
#F9EFF4
border
#D2CACE
text
#140B10
muted
#827C7F

Preview Lab

Preview with #AF4A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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