#AF36A2#AF36A2

#AF36A2 is a mid, vivid purple. Relative luminance 0.144; OKLCH L 55.0% C 0.197 H 332.6°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#AF36A2
RGBrgb(175, 54, 162)
HSLhsl(306, 53%, 45%)
HSVhsv(306, 69%, 69%)
CMYKcmyk(0%, 69.1%, 7.4%, 31.4%)
CIE-LABlab(44.75, 60.72, -33.05)
CIE-LCHlch(44.75, 69.13, 331.44°)
OKLaboklab(54.95% 0.1746 -0.0906)
OKLCHoklch(54.95% 0.197 332.6)
XYZxyz(25.5200, 14.3630, 35.6037)
Luminance0.1436 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF36A2 #36AF43
analogous
#7F36AF #AF36A2 #AF3666
triadic
#AF36A2 #A2AF36 #36A2AF
tetradic
#AF36A2 #AF7F36 #36AF43 #3666AF
square
#AF36A2 #AF7F36 #36AF43 #3666AF
split-complementary
#AF36A2 #66AF36 #36AF7F
monochromatic
#51194B #802877 #AF36A2 #CB57BF #DA86D1

Accessibility & contrast

On white

5.42
#AF36A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#AF36A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF36A2
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF36A2#FFFFFF#000000##FFFFFF
##AF36A21.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305FA5
Deuteranopia (green-blind)
#5C709F
Tritanopia (blue-blind)
#B74268
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af36a2;
/* rgb */ color: rgb(175, 54, 162);
/* oklch */ color: oklch(55.0% 0.197 332.6);
Tailwind
colors: {
  custom: {
    50: '#ca78be',
    500: '#af36a2',
    950: '#000000',
  },
}
SCSS
$custom: #af36a2;
$custom-light: #ca78be;
$custom-dark: #000000;
JSON
{
  "hex": "#af36a2",
  "rgb": {
    "r": 175,
    "g": 54,
    "b": 162
  },
  "hsl": {
    "h": 306.446,
    "s": 52.838,
    "l": 44.902
  },
  "oklch": {
    "l": 0.54953,
    "c": 0.19671,
    "h": 332.6
  },
  "luminance": 0.14361
}

Semantic roles & 50–950 ramp

primary
#AF36A2
secondary
#7DC385
accent
#DC5B4C
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF36A2

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

Preview Lab → · Contrast checker → · Palette generator →

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