#AF54DB#AF54DB

#AF54DB is a mid, highly saturated purple. Relative luminance 0.206; OKLCH L 61.6% C 0.207 H 313.0°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#AF54DB
RGBrgb(175, 84, 219)
HSLhsl(280, 65%, 59%)
HSVhsv(280, 62%, 86%)
CMYKcmyk(20.1%, 61.6%, 0%, 14.1%)
CIE-LABlab(52.48, 58.50, -53.89)
CIE-LCHlch(52.48, 79.54, 317.35°)
OKLaboklab(61.55% 0.1413 -0.1515)
OKLCHoklch(61.55% 0.207 313)
XYZxyz(33.6335, 20.5700, 69.2028)
Luminance0.2057 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF54DB #80DB54
analogous
#6C54DB #AF54DB #DB54C4
triadic
#AF54DB #DBAF54 #54DBAF
tetradic
#AF54DB #DB6C54 #80DB54 #54C4DB
square
#AF54DB #DB6C54 #80DB54 #54C4DB
split-complementary
#AF54DB #C4DB54 #54DB6C
monochromatic
#6F1F95 #942AC8 #AF54DB #C787E6 #DEB9F0

Accessibility & contrast

On white

4.11
#AF54DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#AF54DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF54DB
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF54DB#FFFFFF#000000##000000
##AF54DB1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F78DF
Deuteranopia (green-blind)
#4C7FD8
Tritanopia (blue-blind)
#AB6D90
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af54db;
/* rgb */ color: rgb(175, 84, 219);
/* oklch */ color: oklch(61.6% 0.207 313.0);
Tailwind
colors: {
  custom: {
    50: '#ca89e7',
    500: '#af54db',
    950: '#000000',
  },
}
SCSS
$custom: #af54db;
$custom-light: #ca89e7;
$custom-dark: #000000;
JSON
{
  "hex": "#af54db",
  "rgb": {
    "r": 175,
    "g": 84,
    "b": 219
  },
  "hsl": {
    "h": 280.444,
    "s": 65.217,
    "l": 59.412
  },
  "oklch": {
    "l": 0.6155,
    "c": 0.20716,
    "h": 313
  },
  "luminance": 0.20569
}

Semantic roles & 50–950 ramp

primary
#AF54DB
secondary
#BCE0AB
accent
#E84077
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF54DB

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

Preview Lab → · Contrast checker → · Palette generator →

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