#AF36D5#AF36D5

#AF36D5 is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 58.0% C 0.238 H 316.6°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#AF36D5
RGBrgb(175, 54, 213)
HSLhsl(286, 65%, 52%)
HSVhsv(286, 75%, 84%)
CMYKcmyk(17.8%, 74.6%, 0%, 16.5%)
CIE-LABlab(47.70, 69.64, -58.15)
CIE-LCHlch(47.70, 90.72, 320.14°)
OKLaboklab(58.01% 0.1731 -0.1637)
OKLCHoklch(58.01% 0.238 316.6)
XYZxyz(31.0068, 16.5577, 64.5005)
Luminance0.1656 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF36D5 #5CD536
analogous
#5F36D5 #AF36D5 #D536AC
triadic
#AF36D5 #D5AF36 #36D5AF
tetradic
#AF36D5 #D55F36 #5CD536 #36ACD5
square
#AF36D5 #D55F36 #5CD536 #36ACD5
split-complementary
#AF36D5 #ACD536 #36D55F
monochromatic
#611978 #8A24AA #AF36D5 #C369E0 #D79BEA

Accessibility & contrast

On white

4.87
#AF36D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#AF36D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF36D5
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF36D5#FFFFFF#000000##FFFFFF
##AF36D51.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD9
Deuteranopia (green-blind)
#3675D2
Tritanopia (blue-blind)
#AD5984
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af36d5;
/* rgb */ color: rgb(175, 54, 213);
/* oklch */ color: oklch(58.0% 0.238 316.6);
Tailwind
colors: {
  custom: {
    50: '#cb79e3',
    500: '#af36d5',
    950: '#000000',
  },
}
SCSS
$custom: #af36d5;
$custom-light: #cb79e3;
$custom-dark: #000000;
JSON
{
  "hex": "#af36d5",
  "rgb": {
    "r": 175,
    "g": 54,
    "b": 213
  },
  "hsl": {
    "h": 285.66,
    "s": 65.432,
    "l": 52.353
  },
  "oklch": {
    "l": 0.58008,
    "c": 0.23827,
    "h": 316.6
  },
  "luminance": 0.16556
}

Semantic roles & 50–950 ramp

primary
#AF36D5
secondary
#A1D691
accent
#E83F68
background
#FDF7FE
surface
#FAEEFC
border
#D3C9D5
text
#140A15
muted
#837C84

Preview Lab

Preview with #AF36D5

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

Preview Lab → · Contrast checker → · Palette generator →

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