#AF4E9E#AF4E9E

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

Color values

HEX#AF4E9E
RGBrgb(175, 78, 158)
HSLhsl(311, 38%, 50%)
HSVhsv(311, 55%, 69%)
CMYKcmyk(0%, 55.4%, 9.7%, 31.4%)
CIE-LABlab(48.30, 49.79, -25.13)
CIE-LCHlch(48.30, 55.77, 333.22°)
OKLaboklab(57.49% 0.1441 -0.0682)
OKLCHoklch(57.49% 0.159 334.7)
XYZxyz(26.5752, 17.0333, 34.2292)
Luminance0.1703 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4E9E #4EAF5F
analogous
#8F4EAF #AF4E9E #AF4E6E
triadic
#AF4E9E #9EAF4E #4E9EAF
tetradic
#AF4E9E #AF8F4E #4EAF5F #4E6EAF
square
#AF4E9E #AF8F4E #4EAF5F #4E6EAF
split-complementary
#AF4E9E #6EAF4E #4EAF8F
monochromatic
#5A2852 #853B78 #AF4E9E #C378B5 #D6A2CC

Accessibility & contrast

On white

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

On black

4.41
#AF4E9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##AF4E9E#FFFFFF#000000##FFFFFF
##AF4E9E1.004.774.414.77
#FFFFFF4.771.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E6AA1
Deuteranopia (green-blind)
#6A789B
Tritanopia (blue-blind)
#B7546F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af4e9e;
/* rgb */ color: rgb(175, 78, 158);
/* oklch */ color: oklch(57.5% 0.159 334.7);
Tailwind
colors: {
  custom: {
    50: '#c984bb',
    500: '#af4e9e',
    950: '#000000',
  },
}
SCSS
$custom: #af4e9e;
$custom-light: #c984bb;
$custom-dark: #000000;
JSON
{
  "hex": "#af4e9e",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 158
  },
  "hsl": {
    "h": 310.515,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.57487,
    "c": 0.1594,
    "h": 334.7
  },
  "luminance": 0.17031
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF4E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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