#AF4E9D#AF4E9D

#AF4E9D is a mid, vivid pink. Relative luminance 0.170; OKLCH L 57.4% C 0.159 H 335.1°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#AF4E9D
RGBrgb(175, 78, 157)
HSLhsl(311, 38%, 50%)
HSVhsv(311, 55%, 69%)
CMYKcmyk(0%, 55.4%, 10.3%, 31.4%)
CIE-LABlab(48.26, 49.62, -24.60)
CIE-LCHlch(48.26, 55.38, 333.63°)
OKLaboklab(57.44% 0.1439 -0.0667)
OKLCHoklch(57.44% 0.159 335.1)
XYZxyz(26.4895, 16.9990, 33.7777)
Luminance0.1700 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4E9D #4EAF60
analogous
#914EAF #AF4E9D #AF4E6D
triadic
#AF4E9D #9DAF4E #4E9DAF
tetradic
#AF4E9D #AF914E #4EAF60 #4E6DAF
square
#AF4E9D #AF914E #4EAF60 #4E6DAF
split-complementary
#AF4E9D #6DAF4E #4EAF91
monochromatic
#5A2851 #853B77 #AF4E9D #C378B5 #D6A2CC

Accessibility & contrast

On white

4.77
#AF4E9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#AF4E9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4E9D
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4E9D#FFFFFF#000000##FFFFFF
##AF4E9D1.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E69A0
Deuteranopia (green-blind)
#6B789A
Tritanopia (blue-blind)
#B7536E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af4e9d;
/* rgb */ color: rgb(175, 78, 157);
/* oklch */ color: oklch(57.4% 0.159 335.1);
Tailwind
colors: {
  custom: {
    50: '#c984ba',
    500: '#af4e9d',
    950: '#000000',
  },
}
SCSS
$custom: #af4e9d;
$custom-light: #c984ba;
$custom-dark: #000000;
JSON
{
  "hex": "#af4e9d",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 157
  },
  "hsl": {
    "h": 311.134,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.57441,
    "c": 0.1586,
    "h": 335.1
  },
  "luminance": 0.16997
}

Semantic roles & 50–950 ramp

primary
#AF4E9D
secondary
#96C39E
accent
#CE6F5A
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#130B11
muted
#827C80

Preview Lab

Preview with #AF4E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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