#AF4E9B#AF4E9B

#AF4E9B is a mid, vivid pink. Relative luminance 0.169; OKLCH L 57.4% C 0.157 H 336.1°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#AF4E9B
RGBrgb(175, 78, 155)
HSLhsl(312, 38%, 50%)
HSVhsv(312, 55%, 69%)
CMYKcmyk(0%, 55.4%, 11.4%, 31.4%)
CIE-LABlab(48.17, 49.29, -23.54)
CIE-LCHlch(48.17, 54.63, 334.47°)
OKLaboklab(57.35% 0.1435 -0.0637)
OKLCHoklch(57.35% 0.157 336.1)
XYZxyz(26.3202, 16.9312, 32.8858)
Luminance0.1693 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4E9B #4EAF62
analogous
#934EAF #AF4E9B #AF4E6B
triadic
#AF4E9B #9BAF4E #4E9BAF
tetradic
#AF4E9B #AF934E #4EAF62 #4E6BAF
square
#AF4E9B #AF934E #4EAF62 #4E6BAF
split-complementary
#AF4E9B #6BAF4E #4EAF93
monochromatic
#5A2850 #853B76 #AF4E9B #C378B3 #D6A2CB

Accessibility & contrast

On white

4.79
#AF4E9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#AF4E9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4E9B
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4E9B#FFFFFF#000000##FFFFFF
##AF4E9B1.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F699D
Deuteranopia (green-blind)
#6B7898
Tritanopia (blue-blind)
#B7536D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af4e9b;
/* rgb */ color: rgb(175, 78, 155);
/* oklch */ color: oklch(57.4% 0.157 336.1);
Tailwind
colors: {
  custom: {
    50: '#c984b8',
    500: '#af4e9b',
    950: '#000000',
  },
}
SCSS
$custom: #af4e9b;
$custom-light: #c984b8;
$custom-dark: #000000;
JSON
{
  "hex": "#af4e9b",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 155
  },
  "hsl": {
    "h": 312.371,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.5735,
    "c": 0.157,
    "h": 336.1
  },
  "luminance": 0.16929
}

Semantic roles & 50–950 ramp

primary
#AF4E9B
secondary
#96C39F
accent
#CE725A
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#130B11
muted
#827C80

Preview Lab

Preview with #AF4E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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