#AF4E8B#AF4E8B

#AF4E8B is a mid, vivid pink. Relative luminance 0.164; OKLCH L 56.7% C 0.145 H 344.1°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#AF4E8B
RGBrgb(175, 78, 139)
HSLhsl(322, 38%, 50%)
HSVhsv(322, 55%, 69%)
CMYKcmyk(0%, 55.4%, 20.6%, 31.4%)
CIE-LABlab(47.53, 46.79, -14.97)
CIE-LCHlch(47.53, 49.13, 342.25°)
OKLaboklab(56.66% 0.1398 -0.0397)
OKLCHoklch(56.66% 0.145 344.1)
XYZxyz(25.0644, 16.4289, 26.2721)
Luminance0.1643 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4E8B #4EAF72
analogous
#A34EAF #AF4E8B #AF4E5B
triadic
#AF4E8B #8BAF4E #4E8BAF
tetradic
#AF4E8B #AFA34E #4EAF72 #4E5BAF
square
#AF4E8B #AFA34E #4EAF72 #4E5BAF
split-complementary
#AF4E8B #5BAF4E #4EAFA3
monochromatic
#5A2848 #853B69 #AF4E8B #C378A7 #D6A2C2

Accessibility & contrast

On white

4.90
#AF4E8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#AF4E8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4E8B
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4E8B#FFFFFF#000000##FFFFFF
##AF4E8B1.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#56678D
Deuteranopia (green-blind)
#717789
Tritanopia (blue-blind)
#B94E66
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af4e8b;
/* rgb */ color: rgb(175, 78, 139);
/* oklch */ color: oklch(56.7% 0.145 344.1);
Tailwind
colors: {
  custom: {
    50: '#c984ad',
    500: '#af4e8b',
    950: '#000000',
  },
}
SCSS
$custom: #af4e8b;
$custom-light: #c984ad;
$custom-dark: #000000;
JSON
{
  "hex": "#af4e8b",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 139
  },
  "hsl": {
    "h": 322.268,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.56664,
    "c": 0.14529,
    "h": 344.1
  },
  "luminance": 0.16427
}

Semantic roles & 50–950 ramp

primary
#AF4E8B
secondary
#96C3A7
accent
#CE855A
background
#FCF8FA
surface
#F9EFF4
border
#D2CACE
text
#140B10
muted
#827C7F

Preview Lab

Preview with #AF4E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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