#AF51BE#AF51BE

#AF51BE is a mid, vivid purple. Relative luminance 0.187; OKLCH L 59.5% C 0.183 H 322.0°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#AF51BE
RGBrgb(175, 81, 190)
HSLhsl(292, 46%, 53%)
HSVhsv(292, 57%, 75%)
CMYKcmyk(7.9%, 57.4%, 0%, 25.5%)
CIE-LABlab(50.36, 54.09, -40.65)
CIE-LCHlch(50.36, 67.67, 323.07°)
OKLaboklab(59.49% 0.1442 -0.1128)
OKLCHoklch(59.49% 0.183 322)
XYZxyz(29.9149, 18.7180, 50.7424)
Luminance0.1872 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF51BE #60BE51
analogous
#7851BE #AF51BE #BE5196
triadic
#AF51BE #BEAF51 #51BEAF
tetradic
#AF51BE #BE7851 #60BE51 #5196BE
square
#AF51BE #BE7851 #60BE51 #5196BE
split-complementary
#AF51BE #96BE51 #51BE78
monochromatic
#63286C #8C3999 #AF51BE #C37ECF #D8AADF

Accessibility & contrast

On white

4.43
#AF51BE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#AF51BE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF51BE
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF51BE#FFFFFF#000000##000000
##AF51BE1.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D71C1
Deuteranopia (green-blind)
#5E7CBB
Tritanopia (blue-blind)
#B16180
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af51be;
/* rgb */ color: rgb(175, 81, 190);
/* oklch */ color: oklch(59.5% 0.183 322.0);
Tailwind
colors: {
  custom: {
    50: '#c987d2',
    500: '#af51be',
    950: '#000000',
  },
}
SCSS
$custom: #af51be;
$custom-light: #c987d2;
$custom-dark: #000000;
JSON
{
  "hex": "#af51be",
  "rgb": {
    "r": 175,
    "g": 81,
    "b": 190
  },
  "hsl": {
    "h": 291.743,
    "s": 45.607,
    "l": 53.137
  },
  "oklch": {
    "l": 0.59491,
    "c": 0.18312,
    "h": 322
  },
  "luminance": 0.18717
}

Semantic roles & 50–950 ramp

primary
#AF51BE
secondary
#A4CD9E
accent
#D55365
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AF51BE

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

Preview Lab → · Contrast checker → · Palette generator →

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