#AF51C8#AF51C8

#AF51C8 is a mid, vivid purple. Relative luminance 0.192; OKLCH L 60.1% C 0.193 H 318.7°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#AF51C8
RGBrgb(175, 81, 200)
HSLhsl(287, 52%, 55%)
HSVhsv(287, 60%, 78%)
CMYKcmyk(12.5%, 59.5%, 0%, 21.6%)
CIE-LABlab(50.89, 56.04, -45.58)
CIE-LCHlch(50.89, 72.24, 320.88°)
OKLaboklab(60.05% 0.1448 -0.1272)
OKLCHoklch(60.05% 0.193 318.7)
XYZxyz(31.0456, 19.1702, 56.6973)
Luminance0.1917 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF51C8 #6AC851
analogous
#7351C8 #AF51C8 #C851A5
triadic
#AF51C8 #C8AF51 #51C8AF
tetradic
#AF51C8 #C87351 #6AC851 #51A5C8
square
#AF51C8 #C87351 #6AC851 #51A5C8
split-complementary
#AF51C8 #A5C851 #51C873
monochromatic
#672679 #8F35A7 #AF51C8 #C480D7 #DAAEE5

Accessibility & contrast

On white

4.34
#AF51C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#AF51C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF51C8
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF51C8#FFFFFF#000000##000000
##AF51C81.004.344.834.83
#FFFFFF4.341.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3373CC
Deuteranopia (green-blind)
#587CC5
Tritanopia (blue-blind)
#AF6485
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af51c8;
/* rgb */ color: rgb(175, 81, 200);
/* oklch */ color: oklch(60.1% 0.193 318.7);
Tailwind
colors: {
  custom: {
    50: '#ca87d9',
    500: '#af51c8',
    950: '#000000',
  },
}
SCSS
$custom: #af51c8;
$custom-light: #ca87d9;
$custom-dark: #000000;
JSON
{
  "hex": "#af51c8",
  "rgb": {
    "r": 175,
    "g": 81,
    "b": 200
  },
  "hsl": {
    "h": 287.395,
    "s": 51.965,
    "l": 55.098
  },
  "oklch": {
    "l": 0.6005,
    "c": 0.1927,
    "h": 318.7
  },
  "luminance": 0.19169
}

Semantic roles & 50–950 ramp

primary
#AF51C8
secondary
#ACD3A1
accent
#DB4C6A
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF51C8

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

Preview Lab → · Contrast checker → · Palette generator →

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