#AF51DA#AF51DA

#AF51DA is a mid, highly saturated purple. Relative luminance 0.201; OKLCH L 61.1% C 0.210 H 313.5°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#AF51DA
RGBrgb(175, 81, 218)
HSLhsl(281, 65%, 59%)
HSVhsv(281, 63%, 85%)
CMYKcmyk(19.7%, 62.8%, 0%, 14.5%)
CIE-LABlab(51.91, 59.69, -54.24)
CIE-LCHlch(51.91, 80.65, 317.74°)
OKLaboklab(61.12% 0.1449 -0.1525)
OKLCHoklch(61.12% 0.21 313.5)
XYZxyz(33.2744, 20.0618, 68.4356)
Luminance0.2006 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF51DA #7CDA51
analogous
#6A51DA #AF51DA #DA51C0
triadic
#AF51DA #DAAF51 #51DAAF
tetradic
#AF51DA #DA6A51 #7CDA51 #51C0DA
square
#AF51DA #DA6A51 #7CDA51 #51C0DA
split-complementary
#AF51DA #C0DA51 #51DA6A
monochromatic
#6E1F92 #942AC4 #AF51DA #C683E5 #DDB6EF

Accessibility & contrast

On white

4.19
#AF51DA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#AF51DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF51DA
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF51DA#FFFFFF#000000##000000
##AF51DA1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1677DE
Deuteranopia (green-blind)
#4A7ED7
Tritanopia (blue-blind)
#AB6B8E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af51da;
/* rgb */ color: rgb(175, 81, 218);
/* oklch */ color: oklch(61.1% 0.210 313.5);
Tailwind
colors: {
  custom: {
    50: '#ca87e6',
    500: '#af51da',
    950: '#000000',
  },
}
SCSS
$custom: #af51da;
$custom-light: #ca87e6;
$custom-dark: #000000;
JSON
{
  "hex": "#af51da",
  "rgb": {
    "r": 175,
    "g": 81,
    "b": 218
  },
  "hsl": {
    "h": 281.168,
    "s": 64.929,
    "l": 58.627
  },
  "oklch": {
    "l": 0.6112,
    "c": 0.21032,
    "h": 313.5
  },
  "luminance": 0.20061
}

Semantic roles & 50–950 ramp

primary
#AF51DA
secondary
#B9DEA8
accent
#E84075
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF51DA

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

Preview Lab → · Contrast checker → · Palette generator →

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