#AF51BC#AF51BC

#AF51BC is a mid, vivid purple. Relative luminance 0.186; OKLCH L 59.4% C 0.181 H 322.6°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#AF51BC
RGBrgb(175, 81, 188)
HSLhsl(293, 44%, 53%)
HSVhsv(293, 57%, 74%)
CMYKcmyk(6.9%, 56.9%, 0%, 26.3%)
CIE-LABlab(50.25, 53.71, -39.66)
CIE-LCHlch(50.25, 66.77, 323.56°)
OKLaboklab(59.38% 0.1441 -0.11)
OKLCHoklch(59.38% 0.181 322.6)
XYZxyz(29.6978, 18.6311, 49.5991)
Luminance0.1863 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF51BC #5EBC51
analogous
#7951BC #AF51BC #BC5194
triadic
#AF51BC #BCAF51 #51BCAF
tetradic
#AF51BC #BC7951 #5EBC51 #5194BC
square
#AF51BC #BC7951 #5EBC51 #5194BC
split-complementary
#AF51BC #94BC51 #51BC79
monochromatic
#62296A #8B3A96 #AF51BC #C37DCD #D8A9DE

Accessibility & contrast

On white

4.44
#AF51BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#AF51BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF51BC
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF51BC#FFFFFF#000000##000000
##AF51BC1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E71BF
Deuteranopia (green-blind)
#5F7BB9
Tritanopia (blue-blind)
#B1607F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af51bc;
/* rgb */ color: rgb(175, 81, 188);
/* oklch */ color: oklch(59.4% 0.181 322.6);
Tailwind
colors: {
  custom: {
    50: '#c987d0',
    500: '#af51bc',
    950: '#000000',
  },
}
SCSS
$custom: #af51bc;
$custom-light: #c987d0;
$custom-dark: #000000;
JSON
{
  "hex": "#af51bc",
  "rgb": {
    "r": 175,
    "g": 81,
    "b": 188
  },
  "hsl": {
    "h": 292.71,
    "s": 44.398,
    "l": 52.745
  },
  "oklch": {
    "l": 0.59383,
    "c": 0.18123,
    "h": 322.6
  },
  "luminance": 0.1863
}

Semantic roles & 50–950 ramp

primary
#AF51BC
secondary
#A3CC9D
accent
#D45463
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AF51BC

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

Preview Lab → · Contrast checker → · Palette generator →

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