#AF36C6#AF36C6

#AF36C6 is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 57.0% C 0.226 H 320.7°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#AF36C6
RGBrgb(175, 54, 198)
HSLhsl(290, 57%, 49%)
HSVhsv(290, 73%, 78%)
CMYKcmyk(11.6%, 72.7%, 0%, 22.4%)
CIE-LABlab(46.75, 66.86, -51.02)
CIE-LCHlch(46.75, 84.10, 322.65°)
OKLaboklab(57.04% 0.1746 -0.1429)
OKLCHoklch(57.04% 0.226 320.7)
XYZxyz(29.1902, 15.8310, 54.9333)
Luminance0.1583 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF36C6 #4DC636
analogous
#6736C6 #AF36C6 #C63695
triadic
#AF36C6 #C6AF36 #36C6AF
tetradic
#AF36C6 #C66736 #4DC636 #3695C6
square
#AF36C6 #C66736 #4DC636 #3695C6
split-complementary
#AF36C6 #95C636 #36C667
monochromatic
#5A1C66 #852996 #AF36C6 #C364D5 #D694E2

Accessibility & contrast

On white

5.04
#AF36C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#AF36C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF36C6
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF36C6#FFFFFF#000000##FFFFFF
##AF36C61.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CA
Deuteranopia (green-blind)
#4673C3
Tritanopia (blue-blind)
#B0527B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af36c6;
/* rgb */ color: rgb(175, 54, 198);
/* oklch */ color: oklch(57.0% 0.226 320.7);
Tailwind
colors: {
  custom: {
    50: '#cb79d8',
    500: '#af36c6',
    950: '#000000',
  },
}
SCSS
$custom: #af36c6;
$custom-light: #cb79d8;
$custom-dark: #000000;
JSON
{
  "hex": "#af36c6",
  "rgb": {
    "r": 175,
    "g": 54,
    "b": 198
  },
  "hsl": {
    "h": 290.417,
    "s": 57.143,
    "l": 49.412
  },
  "oklch": {
    "l": 0.57035,
    "c": 0.22561,
    "h": 320.7
  },
  "luminance": 0.1583
}

Semantic roles & 50–950 ramp

primary
#AF36C6
secondary
#95CD8B
accent
#E04760
background
#FCF7FD
surface
#F9EEFA
border
#D2C9D3
text
#140A14
muted
#827C83

Preview Lab

Preview with #AF36C6

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

Preview Lab → · Contrast checker → · Palette generator →

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