#AF36AB#AF36AB

#AF36AB is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.4% C 0.204 H 329.3°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#AF36AB
RGBrgb(175, 54, 171)
HSLhsl(302, 53%, 45%)
HSVhsv(302, 69%, 69%)
CMYKcmyk(0%, 69.1%, 2.3%, 31.4%)
CIE-LABlab(45.21, 62.17, -37.66)
CIE-LCHlch(45.21, 72.69, 328.79°)
OKLaboklab(55.44% 0.1751 -0.104)
OKLCHoklch(55.44% 0.204 329.3)
XYZxyz(26.3488, 14.6945, 39.9687)
Luminance0.1469 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF36AB #36AF3A
analogous
#7636AF #AF36AB #AF366F
triadic
#AF36AB #ABAF36 #36ABAF
tetradic
#AF36AB #AF7636 #36AF3A #366FAF
square
#AF36AB #AF7636 #36AF3A #366FAF
split-complementary
#AF36AB #6FAF36 #36AF76
monochromatic
#511950 #80287D #AF36AB #CB57C7 #DA86D7

Accessibility & contrast

On white

5.33
#AF36AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#AF36AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF36AB
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF36AB#FFFFFF#000000##FFFFFF
##AF36AB1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2761AE
Deuteranopia (green-blind)
#5771A8
Tritanopia (blue-blind)
#B5466C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af36ab;
/* rgb */ color: rgb(175, 54, 171);
/* oklch */ color: oklch(55.4% 0.204 329.3);
Tailwind
colors: {
  custom: {
    50: '#ca78c4',
    500: '#af36ab',
    950: '#000000',
  },
}
SCSS
$custom: #af36ab;
$custom-light: #ca78c4;
$custom-dark: #000000;
JSON
{
  "hex": "#af36ab",
  "rgb": {
    "r": 175,
    "g": 54,
    "b": 171
  },
  "hsl": {
    "h": 301.983,
    "s": 52.838,
    "l": 44.902
  },
  "oklch": {
    "l": 0.55438,
    "c": 0.20365,
    "h": 329.3
  },
  "luminance": 0.14693
}

Semantic roles & 50–950 ramp

primary
#AF36AB
secondary
#7DC380
accent
#DC504C
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF36AB

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

Preview Lab → · Contrast checker → · Palette generator →

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