#AF36B7#AF36B7

#AF36B7 is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.1% C 0.213 H 325.3°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#AF36B7
RGBrgb(175, 54, 183)
HSLhsl(296, 54%, 46%)
HSVhsv(296, 70%, 72%)
CMYKcmyk(4.4%, 70.5%, 0%, 28.2%)
CIE-LABlab(45.87, 64.20, -43.69)
CIE-LCHlch(45.87, 77.65, 325.76°)
OKLaboklab(56.12% 0.1753 -0.1215)
OKLCHoklch(56.12% 0.213 325.3)
XYZxyz(27.5450, 15.1730, 46.2684)
Luminance0.1517 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF36B7 #3EB736
analogous
#6F36B7 #AF36B7 #B7367F
triadic
#AF36B7 #B7AF36 #36B7AF
tetradic
#AF36B7 #B76F36 #3EB736 #367FB7
square
#AF36B7 #B76F36 #3EB736 #367FB7
split-complementary
#AF36B7 #7FB736 #36B76F
monochromatic
#551A58 #822888 #AF36B7 #C85BCF #D88BDD

Accessibility & contrast

On white

5.21
#AF36B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#AF36B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF36B7
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF36B7#FFFFFF#000000##FFFFFF
##AF36B71.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1463BB
Deuteranopia (green-blind)
#5172B4
Tritanopia (blue-blind)
#B34B73
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af36b7;
/* rgb */ color: rgb(175, 54, 183);
/* oklch */ color: oklch(56.1% 0.213 325.3);
Tailwind
colors: {
  custom: {
    50: '#ca78cd',
    500: '#af36b7',
    950: '#000000',
  },
}
SCSS
$custom: #af36b7;
$custom-light: #ca78cd;
$custom-dark: #000000;
JSON
{
  "hex": "#af36b7",
  "rgb": {
    "r": 175,
    "g": 54,
    "b": 183
  },
  "hsl": {
    "h": 296.279,
    "s": 54.43,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56122,
    "c": 0.21324,
    "h": 325.3
  },
  "luminance": 0.15171
}

Semantic roles & 50–950 ramp

primary
#AF36B7
secondary
#86C782
accent
#DE4A53
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF36B7

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

Preview Lab → · Contrast checker → · Palette generator →

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