#AF4A9D#AF4A9D

#AF4A9D is a mid, vivid pink. Relative luminance 0.164; OKLCH L 56.9% C 0.165 H 335.0°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#AF4A9D
RGBrgb(175, 74, 157)
HSLhsl(311, 41%, 49%)
HSVhsv(311, 58%, 69%)
CMYKcmyk(0%, 57.7%, 10.3%, 31.4%)
CIE-LABlab(47.56, 51.51, -25.69)
CIE-LCHlch(47.56, 57.56, 333.50°)
OKLaboklab(56.92% 0.1494 -0.0698)
OKLCHoklch(56.92% 0.165 335)
XYZxyz(26.2139, 16.4478, 33.6858)
Luminance0.1645 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4A9D #4AAF5C
analogous
#8F4AAF #AF4A9D #AF4A6B
triadic
#AF4A9D #9DAF4A #4A9DAF
tetradic
#AF4A9D #AF8F4A #4AAF5C #4A6BAF
square
#AF4A9D #AF8F4A #4AAF5C #4A6BAF
split-complementary
#AF4A9D #6BAF4A #4AAF8F
monochromatic
#592650 #843876 #AF4A9D #C473B5 #D69ECC

Accessibility & contrast

On white

4.90
#AF4A9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#AF4A9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4A9D
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4A9D#FFFFFF#000000##FFFFFF
##AF4A9D1.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A67A0
Deuteranopia (green-blind)
#68769A
Tritanopia (blue-blind)
#B7506D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af4a9d;
/* rgb */ color: rgb(175, 74, 157);
/* oklch */ color: oklch(56.9% 0.165 335.0);
Tailwind
colors: {
  custom: {
    50: '#c982ba',
    500: '#af4a9d',
    950: '#000000',
  },
}
SCSS
$custom: #af4a9d;
$custom-light: #c982ba;
$custom-dark: #000000;
JSON
{
  "hex": "#af4a9d",
  "rgb": {
    "r": 175,
    "g": 74,
    "b": 157
  },
  "hsl": {
    "h": 310.693,
    "s": 40.562,
    "l": 48.824
  },
  "oklch": {
    "l": 0.56923,
    "c": 0.16489,
    "h": 335
  },
  "luminance": 0.16446
}

Semantic roles & 50–950 ramp

primary
#AF4A9D
secondary
#92C29B
accent
#D06D57
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#140B11
muted
#827C80

Preview Lab

Preview with #AF4A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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