#AF54DA#AF54DA

#AF54DA is a mid, highly saturated purple. Relative luminance 0.205; OKLCH L 61.5% C 0.206 H 313.3°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#AF54DA
RGBrgb(175, 84, 218)
HSLhsl(281, 64%, 59%)
HSVhsv(281, 61%, 85%)
CMYKcmyk(19.7%, 61.5%, 0%, 14.5%)
CIE-LABlab(52.42, 58.29, -53.42)
CIE-LCHlch(52.42, 79.07, 317.50°)
OKLaboklab(61.49% 0.1413 -0.1501)
OKLCHoklch(61.49% 0.206 313.3)
XYZxyz(33.5022, 20.5175, 68.5115)
Luminance0.2052 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF54DA #7FDA54
analogous
#6C54DA #AF54DA #DA54C2
triadic
#AF54DA #DAAF54 #54DAAF
tetradic
#AF54DA #DA6C54 #7FDA54 #54C2DA
square
#AF54DA #DA6C54 #7FDA54 #54C2DA
split-complementary
#AF54DA #C2DA54 #54DA6C
monochromatic
#6F2094 #942BC6 #AF54DA #C786E5 #DEB9F0

Accessibility & contrast

On white

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

On black

5.10
#AF54DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF54DA
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF54DA#FFFFFF#000000##000000
##AF54DA1.004.115.105.10
#FFFFFF4.111.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2178DE
Deuteranopia (green-blind)
#4D7FD7
Tritanopia (blue-blind)
#AB6D8F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af54da;
/* rgb */ color: rgb(175, 84, 218);
/* oklch */ color: oklch(61.5% 0.206 313.3);
Tailwind
colors: {
  custom: {
    50: '#ca89e6',
    500: '#af54da',
    950: '#000000',
  },
}
SCSS
$custom: #af54da;
$custom-light: #ca89e6;
$custom-dark: #000000;
JSON
{
  "hex": "#af54da",
  "rgb": {
    "r": 175,
    "g": 84,
    "b": 218
  },
  "hsl": {
    "h": 280.746,
    "s": 64.423,
    "l": 59.216
  },
  "oklch": {
    "l": 0.61489,
    "c": 0.20616,
    "h": 313.3
  },
  "luminance": 0.20517
}

Semantic roles & 50–950 ramp

primary
#AF54DA
secondary
#BCDFAB
accent
#E74076
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF54DA

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

Preview Lab → · Contrast checker → · Palette generator →

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