#AF36B2#AF36B2

#AF36B2 is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 55.8% C 0.209 H 326.9°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#AF36B2
RGBrgb(175, 54, 178)
HSLhsl(299, 53%, 45%)
HSVhsv(299, 70%, 70%)
CMYKcmyk(1.7%, 69.7%, 0%, 30.2%)
CIE-LABlab(45.59, 63.34, -41.20)
CIE-LCHlch(45.59, 75.56, 326.96°)
OKLaboklab(55.83% 0.1753 -0.1142)
OKLCHoklch(55.83% 0.209 326.9)
XYZxyz(27.0338, 14.9685, 43.5762)
Luminance0.1497 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF36B2 #39B236
analogous
#7136B2 #AF36B2 #B23677
triadic
#AF36B2 #B2AF36 #36B2AF
tetradic
#AF36B2 #B27136 #39B236 #3677B2
square
#AF36B2 #B27136 #39B236 #3677B2
split-complementary
#AF36B2 #77B236 #36B271
monochromatic
#531A54 #812883 #AF36B2 #CA59CD #D988DB

Accessibility & contrast

On white

5.26
#AF36B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#AF36B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF36B2
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF36B2#FFFFFF#000000##FFFFFF
##AF36B21.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E62B5
Deuteranopia (green-blind)
#5471AF
Tritanopia (blue-blind)
#B44970
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af36b2;
/* rgb */ color: rgb(175, 54, 178);
/* oklch */ color: oklch(55.8% 0.209 326.9);
Tailwind
colors: {
  custom: {
    50: '#ca78c9',
    500: '#af36b2',
    950: '#000000',
  },
}
SCSS
$custom: #af36b2;
$custom-light: #ca78c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af36b2",
  "rgb": {
    "r": 175,
    "g": 54,
    "b": 178
  },
  "hsl": {
    "h": 298.548,
    "s": 53.448,
    "l": 45.49
  },
  "oklch": {
    "l": 0.55832,
    "c": 0.2092,
    "h": 326.9
  },
  "luminance": 0.14967
}

Semantic roles & 50–950 ramp

primary
#AF36B2
secondary
#81C57F
accent
#DD4B4E
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF36B2

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

Preview Lab → · Contrast checker → · Palette generator →

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