#AF36A6#AF36A6

#AF36A6 is a mid, vivid purple. Relative luminance 0.145; OKLCH L 55.2% C 0.200 H 331.1°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#AF36A6
RGBrgb(175, 54, 166)
HSLhsl(304, 53%, 45%)
HSVhsv(304, 69%, 69%)
CMYKcmyk(0%, 69.1%, 5.1%, 31.4%)
CIE-LABlab(44.95, 61.36, -35.11)
CIE-LCHlch(44.95, 70.69, 330.22°)
OKLaboklab(55.17% 0.1749 -0.0966)
OKLCHoklch(55.17% 0.2 331.1)
XYZxyz(25.8812, 14.5075, 37.5061)
Luminance0.1451 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF36A6 #36AF3F
analogous
#7C36AF #AF36A6 #AF3669
triadic
#AF36A6 #A6AF36 #36A6AF
tetradic
#AF36A6 #AF7C36 #36AF3F #3669AF
square
#AF36A6 #AF7C36 #36AF3F #3669AF
split-complementary
#AF36A6 #69AF36 #36AF7C
monochromatic
#51194D #80287A #AF36A6 #CB57C3 #DA86D3

Accessibility & contrast

On white

5.38
#AF36A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#AF36A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF36A6
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF36A6#FFFFFF#000000##FFFFFF
##AF36A61.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D60A9
Deuteranopia (green-blind)
#5A70A3
Tritanopia (blue-blind)
#B6446A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af36a6;
/* rgb */ color: rgb(175, 54, 166);
/* oklch */ color: oklch(55.2% 0.200 331.1);
Tailwind
colors: {
  custom: {
    50: '#ca78c1',
    500: '#af36a6',
    950: '#000000',
  },
}
SCSS
$custom: #af36a6;
$custom-light: #ca78c1;
$custom-dark: #000000;
JSON
{
  "hex": "#af36a6",
  "rgb": {
    "r": 175,
    "g": 54,
    "b": 166
  },
  "hsl": {
    "h": 304.463,
    "s": 52.838,
    "l": 44.902
  },
  "oklch": {
    "l": 0.55165,
    "c": 0.19976,
    "h": 331.1
  },
  "luminance": 0.14505
}

Semantic roles & 50–950 ramp

primary
#AF36A6
secondary
#7DC383
accent
#DC564C
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF36A6

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

Preview Lab → · Contrast checker → · Palette generator →

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