#AF4E9A#AF4E9A

#AF4E9A is a mid, vivid pink. Relative luminance 0.169; OKLCH L 57.3% C 0.156 H 336.5°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#AF4E9A
RGBrgb(175, 78, 154)
HSLhsl(313, 38%, 50%)
HSVhsv(313, 55%, 69%)
CMYKcmyk(0%, 55.4%, 12%, 31.4%)
CIE-LABlab(48.13, 49.13, -23.02)
CIE-LCHlch(48.13, 54.25, 334.90°)
OKLaboklab(57.3% 0.1433 -0.0622)
OKLCHoklch(57.3% 0.156 336.5)
XYZxyz(26.2365, 16.8978, 32.4453)
Luminance0.1690 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4E9A #4EAF63
analogous
#944EAF #AF4E9A #AF4E69
triadic
#AF4E9A #9AAF4E #4E9AAF
tetradic
#AF4E9A #AF944E #4EAF63 #4E69AF
square
#AF4E9A #AF944E #4EAF63 #4E69AF
split-complementary
#AF4E9A #69AF4E #4EAF94
monochromatic
#5A284F #853B75 #AF4E9A #C378B2 #D6A2CA

Accessibility & contrast

On white

4.80
#AF4E9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#AF4E9A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4E9A
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4E9A#FFFFFF#000000##FFFFFF
##AF4E9A1.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#50699C
Deuteranopia (green-blind)
#6C7897
Tritanopia (blue-blind)
#B7526D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af4e9a;
/* rgb */ color: rgb(175, 78, 154);
/* oklch */ color: oklch(57.3% 0.156 336.5);
Tailwind
colors: {
  custom: {
    50: '#c984b8',
    500: '#af4e9a',
    950: '#000000',
  },
}
SCSS
$custom: #af4e9a;
$custom-light: #c984b8;
$custom-dark: #000000;
JSON
{
  "hex": "#af4e9a",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 154
  },
  "hsl": {
    "h": 312.99,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.57305,
    "c": 0.15621,
    "h": 336.5
  },
  "luminance": 0.16896
}

Semantic roles & 50–950 ramp

primary
#AF4E9A
secondary
#96C3A0
accent
#CE735A
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#130B11
muted
#827C80

Preview Lab

Preview with #AF4E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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