#AF538F#AF538F

#AF538F is a mid, vivid pink. Relative luminance 0.173; OKLCH L 57.5% C 0.140 H 342.6°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#AF538F
RGBrgb(175, 83, 143)
HSLhsl(321, 37%, 51%)
HSVhsv(321, 53%, 69%)
CMYKcmyk(0%, 52.6%, 18.3%, 31.4%)
CIE-LABlab(48.62, 44.93, -15.72)
CIE-LCHlch(48.62, 47.59, 340.72°)
OKLaboklab(57.52% 0.1334 -0.0418)
OKLCHoklch(57.52% 0.14 342.6)
XYZxyz(25.7309, 17.2857, 27.9625)
Luminance0.1728 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF538F #53AF73
analogous
#A153AF #AF538F #AF5361
triadic
#AF538F #8FAF53 #538FAF
tetradic
#AF538F #AFA153 #53AF73 #5361AF
square
#AF538F #AFA153 #53AF73 #5361AF
split-complementary
#AF538F #61AF53 #53AFA1
monochromatic
#5D2B4B #863E6D #AF538F #C27DAA #D6A7C5

Accessibility & contrast

On white

4.71
#AF538F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#AF538F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF538F
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF538F#FFFFFF#000000##FFFFFF
##AF538F1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#596A91
Deuteranopia (green-blind)
#72798D
Tritanopia (blue-blind)
#B9536A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af538f;
/* rgb */ color: rgb(175, 83, 143);
/* oklch */ color: oklch(57.5% 0.140 342.6);
Tailwind
colors: {
  custom: {
    50: '#c987b0',
    500: '#af538f',
    950: '#000000',
  },
}
SCSS
$custom: #af538f;
$custom-light: #c987b0;
$custom-dark: #000000;
JSON
{
  "hex": "#af538f",
  "rgb": {
    "r": 175,
    "g": 83,
    "b": 143
  },
  "hsl": {
    "h": 320.87,
    "s": 36.508,
    "l": 50.588
  },
  "oklch": {
    "l": 0.57522,
    "c": 0.13981,
    "h": 342.6
  },
  "luminance": 0.17284
}

Semantic roles & 50–950 ramp

primary
#AF538F
secondary
#9AC3A9
accent
#CD835B
background
#FCF8FA
surface
#F9F0F4
border
#D2CBCE
text
#130B10
muted
#827C7F

Preview Lab

Preview with #AF538F

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

Preview Lab → · Contrast checker → · Palette generator →

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