#AF36A7#AF36A7

#AF36A7 is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.2% C 0.201 H 330.7°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#AF36A7
RGBrgb(175, 54, 167)
HSLhsl(304, 53%, 45%)
HSVhsv(304, 69%, 69%)
CMYKcmyk(0%, 69.1%, 4.6%, 31.4%)
CIE-LABlab(45.00, 61.52, -35.62)
CIE-LCHlch(45.00, 71.09, 329.93°)
OKLaboklab(55.22% 0.1749 -0.0981)
OKLCHoklch(55.22% 0.201 330.7)
XYZxyz(25.9733, 14.5443, 37.9911)
Luminance0.1454 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF36A7 #36AF3E
analogous
#7B36AF #AF36A7 #AF366B
triadic
#AF36A7 #A7AF36 #36A7AF
tetradic
#AF36A7 #AF7B36 #36AF3E #366BAF
square
#AF36A7 #AF7B36 #36AF3E #366BAF
split-complementary
#AF36A7 #6BAF36 #36AF7B
monochromatic
#51194E #80287A #AF36A7 #CB57C3 #DA86D4

Accessibility & contrast

On white

5.37
#AF36A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#AF36A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF36A7
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF36A7#FFFFFF#000000##FFFFFF
##AF36A71.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af36a7;
/* rgb */ color: rgb(175, 54, 167);
/* oklch */ color: oklch(55.2% 0.201 330.7);
Tailwind
colors: {
  custom: {
    50: '#ca78c1',
    500: '#af36a7',
    950: '#000000',
  },
}
SCSS
$custom: #af36a7;
$custom-light: #ca78c1;
$custom-dark: #000000;
JSON
{
  "hex": "#af36a7",
  "rgb": {
    "r": 175,
    "g": 54,
    "b": 167
  },
  "hsl": {
    "h": 303.967,
    "s": 52.838,
    "l": 44.902
  },
  "oklch": {
    "l": 0.55219,
    "c": 0.20054,
    "h": 330.7
  },
  "luminance": 0.14542
}

Semantic roles & 50–950 ramp

primary
#AF36A7
secondary
#7DC382
accent
#DC554C
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF36A7

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

Preview Lab → · Contrast checker → · Palette generator →

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