#AF4E98#AF4E98

#AF4E98 is a mid, vivid pink. Relative luminance 0.168; OKLCH L 57.2% C 0.155 H 337.5°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#AF4E98
RGBrgb(175, 78, 152)
HSLhsl(314, 38%, 50%)
HSVhsv(314, 55%, 69%)
CMYKcmyk(0%, 55.4%, 13.1%, 31.4%)
CIE-LABlab(48.05, 48.81, -21.95)
CIE-LCHlch(48.05, 53.52, 335.78°)
OKLaboklab(57.22% 0.1429 -0.0592)
OKLCHoklch(57.22% 0.155 337.5)
XYZxyz(26.0714, 16.8317, 31.5754)
Luminance0.1683 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4E98 #4EAF65
analogous
#964EAF #AF4E98 #AF4E67
triadic
#AF4E98 #98AF4E #4E98AF
tetradic
#AF4E98 #AF964E #4EAF65 #4E67AF
square
#AF4E98 #AF964E #4EAF65 #4E67AF
split-complementary
#AF4E98 #67AF4E #4EAF96
monochromatic
#5A284E #853B73 #AF4E98 #C378B1 #D6A2C9

Accessibility & contrast

On white

4.81
#AF4E98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#AF4E98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4E98
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4E98#FFFFFF#000000##FFFFFF
##AF4E981.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#50699A
Deuteranopia (green-blind)
#6D7895
Tritanopia (blue-blind)
#B7526C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af4e98;
/* rgb */ color: rgb(175, 78, 152);
/* oklch */ color: oklch(57.2% 0.155 337.5);
Tailwind
colors: {
  custom: {
    50: '#c984b6',
    500: '#af4e98',
    950: '#000000',
  },
}
SCSS
$custom: #af4e98;
$custom-light: #c984b6;
$custom-dark: #000000;
JSON
{
  "hex": "#af4e98",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 152
  },
  "hsl": {
    "h": 314.227,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.57215,
    "c": 0.15466,
    "h": 337.5
  },
  "luminance": 0.1683
}

Semantic roles & 50–950 ramp

primary
#AF4E98
secondary
#96C3A1
accent
#CE755A
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#130B11
muted
#827C80

Preview Lab

Preview with #AF4E98

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

Preview Lab → · Contrast checker → · Palette generator →

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