#AF36D3#AF36D3

#AF36D3 is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 57.9% C 0.237 H 317.1°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#AF36D3
RGBrgb(175, 54, 211)
HSLhsl(286, 64%, 52%)
HSVhsv(286, 74%, 83%)
CMYKcmyk(17.1%, 74.4%, 0%, 17.3%)
CIE-LABlab(47.57, 69.26, -57.21)
CIE-LCHlch(47.57, 89.83, 320.44°)
OKLaboklab(57.88% 0.1733 -0.161)
OKLCHoklch(57.88% 0.237 317.1)
XYZxyz(30.7545, 16.4568, 63.1719)
Luminance0.1646 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF36D3 #5AD336
analogous
#6136D3 #AF36D3 #D336A9
triadic
#AF36D3 #D3AF36 #36D3AF
tetradic
#AF36D3 #D36136 #5AD336 #36A9D3
square
#AF36D3 #D36136 #5AD336 #36A9D3
split-complementary
#AF36D3 #A9D336 #36D361
monochromatic
#601A75 #8925A7 #AF36D3 #C368DE #D79AE9

Accessibility & contrast

On white

4.89
#AF36D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#AF36D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF36D3
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF36D3#FFFFFF#000000##FFFFFF
##AF36D31.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD7
Deuteranopia (green-blind)
#3974D0
Tritanopia (blue-blind)
#AD5883
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af36d3;
/* rgb */ color: rgb(175, 54, 211);
/* oklch */ color: oklch(57.9% 0.237 317.1);
Tailwind
colors: {
  custom: {
    50: '#cb79e1',
    500: '#af36d3',
    950: '#000000',
  },
}
SCSS
$custom: #af36d3;
$custom-light: #cb79e1;
$custom-dark: #000000;
JSON
{
  "hex": "#af36d3",
  "rgb": {
    "r": 175,
    "g": 54,
    "b": 211
  },
  "hsl": {
    "h": 286.242,
    "s": 64.082,
    "l": 51.961
  },
  "oklch": {
    "l": 0.57875,
    "c": 0.23657,
    "h": 317.1
  },
  "luminance": 0.16455
}

Semantic roles & 50–950 ramp

primary
#AF36D3
secondary
#A0D590
accent
#E74167
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #AF36D3

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

Preview Lab → · Contrast checker → · Palette generator →

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