#AF36D1#AF36D1

#AF36D1 is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.7% C 0.235 H 317.6°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#AF36D1
RGBrgb(175, 54, 209)
HSLhsl(287, 63%, 52%)
HSVhsv(287, 74%, 82%)
CMYKcmyk(16.3%, 74.2%, 0%, 18%)
CIE-LABlab(47.44, 68.89, -56.27)
CIE-LCHlch(47.44, 88.95, 320.76°)
OKLaboklab(57.74% 0.1736 -0.1582)
OKLCHoklch(57.74% 0.235 317.6)
XYZxyz(30.5053, 16.3571, 61.8596)
Luminance0.1636 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF36D1 #58D136
analogous
#6236D1 #AF36D1 #D136A5
triadic
#AF36D1 #D1AF36 #36D1AF
tetradic
#AF36D1 #D16236 #58D136 #36A5D1
square
#AF36D1 #D16236 #58D136 #36A5D1
split-complementary
#AF36D1 #A5D136 #36D162
monochromatic
#5F1A72 #8826A4 #AF36D1 #C368DC #D79AE8

Accessibility & contrast

On white

4.92
#AF36D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#AF36D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF36D1
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF36D1#FFFFFF#000000##FFFFFF
##AF36D11.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D5
Deuteranopia (green-blind)
#3B74CE
Tritanopia (blue-blind)
#AE5781
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af36d1;
/* rgb */ color: rgb(175, 54, 209);
/* oklch */ color: oklch(57.7% 0.235 317.6);
Tailwind
colors: {
  custom: {
    50: '#cb79e0',
    500: '#af36d1',
    950: '#000000',
  },
}
SCSS
$custom: #af36d1;
$custom-light: #cb79e0;
$custom-dark: #000000;
JSON
{
  "hex": "#af36d1",
  "rgb": {
    "r": 175,
    "g": 54,
    "b": 209
  },
  "hsl": {
    "h": 286.839,
    "s": 62.753,
    "l": 51.569
  },
  "oklch": {
    "l": 0.57743,
    "c": 0.23487,
    "h": 317.6
  },
  "luminance": 0.16356
}

Semantic roles & 50–950 ramp

primary
#AF36D1
secondary
#9ED38F
accent
#E64266
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #AF36D1

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

Preview Lab → · Contrast checker → · Palette generator →

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