#AF51BB#AF51BB

#AF51BB is a mid, vivid purple. Relative luminance 0.186; OKLCH L 59.3% C 0.180 H 323.0°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#AF51BB
RGBrgb(175, 81, 187)
HSLhsl(293, 44%, 53%)
HSVhsv(293, 57%, 73%)
CMYKcmyk(6.4%, 56.7%, 0%, 26.7%)
CIE-LABlab(50.20, 53.52, -39.16)
CIE-LCHlch(50.20, 66.32, 323.81°)
OKLaboklab(59.33% 0.144 -0.1085)
OKLCHoklch(59.33% 0.18 323)
XYZxyz(29.5904, 18.5882, 49.0333)
Luminance0.1859 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF51BB #5DBB51
analogous
#7A51BB #AF51BB #BB5192
triadic
#AF51BB #BBAF51 #51BBAF
tetradic
#AF51BB #BB7A51 #5DBB51 #5192BB
square
#AF51BB #BB7A51 #5DBB51 #5192BB
split-complementary
#AF51BB #92BB51 #51BB7A
monochromatic
#612969 #8A3A95 #AF51BB #C37DCC #D7A9DD

Accessibility & contrast

On white

4.45
#AF51BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#AF51BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF51BB
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF51BB#FFFFFF#000000##000000
##AF51BB1.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F70BE
Deuteranopia (green-blind)
#5F7BB8
Tritanopia (blue-blind)
#B2607E
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #af51bb;
/* rgb */ color: rgb(175, 81, 187);
/* oklch */ color: oklch(59.3% 0.180 323.0);
Tailwind
colors: {
  custom: {
    50: '#c987d0',
    500: '#af51bb',
    950: '#000000',
  },
}
SCSS
$custom: #af51bb;
$custom-light: #c987d0;
$custom-dark: #000000;
JSON
{
  "hex": "#af51bb",
  "rgb": {
    "r": 175,
    "g": 81,
    "b": 187
  },
  "hsl": {
    "h": 293.208,
    "s": 43.802,
    "l": 52.549
  },
  "oklch": {
    "l": 0.59329,
    "c": 0.18028,
    "h": 323
  },
  "luminance": 0.18587
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF51BB

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

Preview Lab → · Contrast checker → · Palette generator →

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