#AF4F8D#AF4F8D

#AF4F8D is a mid, vivid pink. Relative luminance 0.166; OKLCH L 56.9% C 0.145 H 343.2°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#AF4F8D
RGBrgb(175, 79, 141)
HSLhsl(321, 38%, 50%)
HSVhsv(321, 55%, 69%)
CMYKcmyk(0%, 54.9%, 19.4%, 31.4%)
CIE-LABlab(47.79, 46.60, -15.78)
CIE-LCHlch(47.79, 49.20, 341.30°)
OKLaboklab(56.88% 0.1388 -0.042)
OKLCHoklch(56.88% 0.145 343.2)
XYZxyz(25.2835, 16.6311, 27.0726)
Luminance0.1663 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4F8D #4FAF71
analogous
#A14FAF #AF4F8D #AF4F5D
triadic
#AF4F8D #8DAF4F #4F8DAF
tetradic
#AF4F8D #AFA14F #4FAF71 #4F5DAF
square
#AF4F8D #AFA14F #4FAF71 #4F5DAF
split-complementary
#AF4F8D #5DAF4F #4FAFA1
monochromatic
#5B2949 #853C6B #AF4F8D #C279A8 #D5A3C4

Accessibility & contrast

On white

4.85
#AF4F8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#AF4F8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4F8D
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4F8D#FFFFFF#000000##FFFFFF
##AF4F8D1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#56678F
Deuteranopia (green-blind)
#71778B
Tritanopia (blue-blind)
#B94F68
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af4f8d;
/* rgb */ color: rgb(175, 79, 141);
/* oklch */ color: oklch(56.9% 0.145 343.2);
Tailwind
colors: {
  custom: {
    50: '#c984ae',
    500: '#af4f8d',
    950: '#000000',
  },
}
SCSS
$custom: #af4f8d;
$custom-light: #c984ae;
$custom-dark: #000000;
JSON
{
  "hex": "#af4f8d",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 141
  },
  "hsl": {
    "h": 321.25,
    "s": 37.795,
    "l": 49.804
  },
  "oklch": {
    "l": 0.56882,
    "c": 0.14502,
    "h": 343.2
  },
  "luminance": 0.16629
}

Semantic roles & 50–950 ramp

primary
#AF4F8D
secondary
#97C3A7
accent
#CE835A
background
#FCF8FA
surface
#F9EFF4
border
#D2CACE
text
#130B10
muted
#827C7F

Preview Lab

Preview with #AF4F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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