#AF538E#AF538E

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

Color values

HEX#AF538E
RGBrgb(175, 83, 142)
HSLhsl(322, 37%, 51%)
HSVhsv(322, 53%, 69%)
CMYKcmyk(0%, 52.6%, 18.9%, 31.4%)
CIE-LABlab(48.58, 44.77, -15.18)
CIE-LCHlch(48.58, 47.27, 341.27°)
OKLaboklab(57.48% 0.1331 -0.0404)
OKLCHoklch(57.48% 0.139 343.1)
XYZxyz(25.6555, 17.2555, 27.5654)
Luminance0.1725 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF538E #53AF74
analogous
#A253AF #AF538E #AF5360
triadic
#AF538E #8EAF53 #538EAF
tetradic
#AF538E #AFA253 #53AF74 #5360AF
square
#AF538E #AFA253 #53AF74 #5360AF
split-complementary
#AF538E #60AF53 #53AFA2
monochromatic
#5D2B4B #863E6D #AF538E #C27DA9 #D6A7C5

Accessibility & contrast

On white

4.72
#AF538E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#AF538E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF538E
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF538E#FFFFFF#000000##FFFFFF
##AF538E1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#596A90
Deuteranopia (green-blind)
#73798C
Tritanopia (blue-blind)
#B9536A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af538e;
/* rgb */ color: rgb(175, 83, 142);
/* oklch */ color: oklch(57.5% 0.139 343.1);
Tailwind
colors: {
  custom: {
    50: '#c987af',
    500: '#af538e',
    950: '#000000',
  },
}
SCSS
$custom: #af538e;
$custom-light: #c987af;
$custom-dark: #000000;
JSON
{
  "hex": "#af538e",
  "rgb": {
    "r": 175,
    "g": 83,
    "b": 142
  },
  "hsl": {
    "h": 321.522,
    "s": 36.508,
    "l": 50.588
  },
  "oklch": {
    "l": 0.57481,
    "c": 0.13911,
    "h": 343.1
  },
  "luminance": 0.17253
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF538E

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

Preview Lab → · Contrast checker → · Palette generator →

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