#AF36B4#AF36B4

#AF36B4 is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 55.9% C 0.211 H 326.2°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#AF36B4
RGBrgb(175, 54, 180)
HSLhsl(298, 54%, 46%)
HSVhsv(298, 70%, 71%)
CMYKcmyk(2.8%, 70%, 0%, 29.4%)
CIE-LABlab(45.70, 63.68, -42.20)
CIE-LCHlch(45.70, 76.39, 326.47°)
OKLaboklab(55.95% 0.1753 -0.1171)
OKLCHoklch(55.95% 0.211 326.2)
XYZxyz(27.2361, 15.0494, 44.6414)
Luminance0.1505 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF36B4 #3BB436
analogous
#7036B4 #AF36B4 #B4367A
triadic
#AF36B4 #B4AF36 #36B4AF
tetradic
#AF36B4 #B47036 #3BB436 #367AB4
square
#AF36B4 #B47036 #3BB436 #367AB4
split-complementary
#AF36B4 #7AB436 #36B470
monochromatic
#531A56 #812885 #AF36B4 #C95ACD #D889DC

Accessibility & contrast

On white

5.24
#AF36B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#AF36B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF36B4
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF36B4#FFFFFF#000000##FFFFFF
##AF36B41.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A62B8
Deuteranopia (green-blind)
#5271B1
Tritanopia (blue-blind)
#B44A71
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af36b4;
/* rgb */ color: rgb(175, 54, 180);
/* oklch */ color: oklch(55.9% 0.211 326.2);
Tailwind
colors: {
  custom: {
    50: '#ca78cb',
    500: '#af36b4',
    950: '#000000',
  },
}
SCSS
$custom: #af36b4;
$custom-light: #ca78cb;
$custom-dark: #000000;
JSON
{
  "hex": "#af36b4",
  "rgb": {
    "r": 175,
    "g": 54,
    "b": 180
  },
  "hsl": {
    "h": 297.619,
    "s": 53.846,
    "l": 45.882
  },
  "oklch": {
    "l": 0.55947,
    "c": 0.21081,
    "h": 326.2
  },
  "luminance": 0.15048
}

Semantic roles & 50–950 ramp

primary
#AF36B4
secondary
#83C680
accent
#DD4B50
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF36B4

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

Preview Lab → · Contrast checker → · Palette generator →

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