#AF36C7#AF36C7

#AF36C7 is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 57.1% C 0.226 H 320.4°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#AF36C7
RGBrgb(175, 54, 199)
HSLhsl(290, 57%, 50%)
HSVhsv(290, 73%, 78%)
CMYKcmyk(12.1%, 72.9%, 0%, 22%)
CIE-LABlab(46.81, 67.04, -51.50)
CIE-LCHlch(46.81, 84.54, 322.47°)
OKLaboklab(57.1% 0.1745 -0.1443)
OKLCHoklch(57.1% 0.226 320.4)
XYZxyz(29.3059, 15.8773, 55.5427)
Luminance0.1588 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF36C7 #4EC736
analogous
#6736C7 #AF36C7 #C73697
triadic
#AF36C7 #C7AF36 #36C7AF
tetradic
#AF36C7 #C76736 #4EC736 #3697C7
square
#AF36C7 #C76736 #4EC736 #3697C7
split-complementary
#AF36C7 #97C736 #36C767
monochromatic
#5A1C67 #852997 #AF36C7 #C365D5 #D695E2

Accessibility & contrast

On white

5.03
#AF36C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#AF36C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF36C7
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF36C7#FFFFFF#000000##FFFFFF
##AF36C71.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CB
Deuteranopia (green-blind)
#4573C4
Tritanopia (blue-blind)
#B0527C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af36c7;
/* rgb */ color: rgb(175, 54, 199);
/* oklch */ color: oklch(57.1% 0.226 320.4);
Tailwind
colors: {
  custom: {
    50: '#cb79d9',
    500: '#af36c7',
    950: '#000000',
  },
}
SCSS
$custom: #af36c7;
$custom-light: #cb79d9;
$custom-dark: #000000;
JSON
{
  "hex": "#af36c7",
  "rgb": {
    "r": 175,
    "g": 54,
    "b": 199
  },
  "hsl": {
    "h": 290.069,
    "s": 57.312,
    "l": 49.608
  },
  "oklch": {
    "l": 0.57098,
    "c": 0.22644,
    "h": 320.4
  },
  "luminance": 0.15876
}

Semantic roles & 50–950 ramp

primary
#AF36C7
secondary
#96CE8B
accent
#E14761
background
#FCF7FD
surface
#F9EEFA
border
#D2C9D3
text
#140A15
muted
#827C83

Preview Lab

Preview with #AF36C7

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

Preview Lab → · Contrast checker → · Palette generator →

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