#AF4C8E#AF4C8E

#AF4C8E is a mid, vivid pink. Relative luminance 0.162; OKLCH L 56.5% C 0.151 H 342.3°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#AF4C8E
RGBrgb(175, 76, 142)
HSLhsl(320, 39%, 49%)
HSVhsv(320, 57%, 69%)
CMYKcmyk(0%, 56.6%, 18.9%, 31.4%)
CIE-LABlab(47.29, 48.20, -17.15)
CIE-LCHlch(47.29, 51.16, 340.42°)
OKLaboklab(56.52% 0.1434 -0.0458)
OKLCHoklch(56.52% 0.151 342.3)
XYZxyz(25.1467, 16.2379, 27.3958)
Luminance0.1624 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4C8E #4CAF6D
analogous
#9F4CAF #AF4C8E #AF4C5D
triadic
#AF4C8E #8EAF4C #4C8EAF
tetradic
#AF4C8E #AF9F4C #4CAF6D #4C5DAF
square
#AF4C8E #AF9F4C #4CAF6D #4C5DAF
split-complementary
#AF4C8E #5DAF4C #4CAF9F
monochromatic
#5A2749 #84396B #AF4C8E #C375A9 #D6A0C4

Accessibility & contrast

On white

4.94
#AF4C8E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#AF4C8E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4C8E
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4C8E#FFFFFF#000000##FFFFFF
##AF4C8E1.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#536690
Deuteranopia (green-blind)
#6F768B
Tritanopia (blue-blind)
#B94D66
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af4c8e;
/* rgb */ color: rgb(175, 76, 142);
/* oklch */ color: oklch(56.5% 0.151 342.3);
Tailwind
colors: {
  custom: {
    50: '#c983af',
    500: '#af4c8e',
    950: '#000000',
  },
}
SCSS
$custom: #af4c8e;
$custom-light: #c983af;
$custom-dark: #000000;
JSON
{
  "hex": "#af4c8e",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 142
  },
  "hsl": {
    "h": 320,
    "s": 39.442,
    "l": 49.216
  },
  "oklch": {
    "l": 0.56519,
    "c": 0.15055,
    "h": 342.3
  },
  "luminance": 0.16236
}

Semantic roles & 50–950 ramp

primary
#AF4C8E
secondary
#94C2A4
accent
#CF8058
background
#FCF8FA
surface
#F9EFF4
border
#D2CACE
text
#140B10
muted
#827C7F

Preview Lab

Preview with #AF4C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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