#AF4E9C#AF4E9C

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

Color values

HEX#AF4E9C
RGBrgb(175, 78, 156)
HSLhsl(312, 38%, 50%)
HSVhsv(312, 55%, 69%)
CMYKcmyk(0%, 55.4%, 10.9%, 31.4%)
CIE-LABlab(48.22, 49.46, -24.07)
CIE-LCHlch(48.22, 55.00, 334.05°)
OKLaboklab(57.4% 0.1437 -0.0652)
OKLCHoklch(57.4% 0.158 335.6)
XYZxyz(26.4045, 16.9650, 33.3299)
Luminance0.1696 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4E9C #4EAF61
analogous
#924EAF #AF4E9C #AF4E6B
triadic
#AF4E9C #9CAF4E #4E9CAF
tetradic
#AF4E9C #AF924E #4EAF61 #4E6BAF
square
#AF4E9C #AF924E #4EAF61 #4E6BAF
split-complementary
#AF4E9C #6BAF4E #4EAF92
monochromatic
#5A2851 #853B76 #AF4E9C #C378B4 #D6A2CB

Accessibility & contrast

On white

4.78
#AF4E9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF4E9C
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4E9C#FFFFFF#000000##FFFFFF
##AF4E9C1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F699F
Deuteranopia (green-blind)
#6B7899
Tritanopia (blue-blind)
#B7536E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af4e9c;
/* rgb */ color: rgb(175, 78, 156);
/* oklch */ color: oklch(57.4% 0.158 335.6);
Tailwind
colors: {
  custom: {
    50: '#c984b9',
    500: '#af4e9c',
    950: '#000000',
  },
}
SCSS
$custom: #af4e9c;
$custom-light: #c984b9;
$custom-dark: #000000;
JSON
{
  "hex": "#af4e9c",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 156
  },
  "hsl": {
    "h": 311.753,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.57395,
    "c": 0.15779,
    "h": 335.6
  },
  "luminance": 0.16963
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF4E9C

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

Preview Lab → · Contrast checker → · Palette generator →

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