#AF54D8#AF54D8

#AF54D8 is a mid, highly saturated purple. Relative luminance 0.204; OKLCH L 61.4% C 0.204 H 313.8°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#AF54D8
RGBrgb(175, 84, 216)
HSLhsl(281, 63%, 59%)
HSVhsv(281, 61%, 85%)
CMYKcmyk(19%, 61.1%, 0%, 15.3%)
CIE-LABlab(52.30, 57.88, -52.47)
CIE-LCHlch(52.30, 78.12, 317.80°)
OKLaboklab(61.37% 0.1414 -0.1473)
OKLCHoklch(61.37% 0.204 313.8)
XYZxyz(33.2421, 20.4135, 67.1415)
Luminance0.2041 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF54D8 #7DD854
analogous
#6D54D8 #AF54D8 #D854BF
triadic
#AF54D8 #D8AF54 #54D8AF
tetradic
#AF54D8 #D86D54 #7DD854 #54BFD8
square
#AF54D8 #D86D54 #7DD854 #54BFD8
split-complementary
#AF54D8 #BFD854 #54D86D
monochromatic
#6E2191 #942CC2 #AF54D8 #C686E3 #DEB8EF

Accessibility & contrast

On white

4.13
#AF54D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#AF54D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF54D8
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF54D8#FFFFFF#000000##000000
##AF54D81.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2478DC
Deuteranopia (green-blind)
#4F7FD5
Tritanopia (blue-blind)
#AB6C8E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af54d8;
/* rgb */ color: rgb(175, 84, 216);
/* oklch */ color: oklch(61.4% 0.204 313.8);
Tailwind
colors: {
  custom: {
    50: '#ca89e5',
    500: '#af54d8',
    950: '#000000',
  },
}
SCSS
$custom: #af54d8;
$custom-light: #ca89e5;
$custom-dark: #000000;
JSON
{
  "hex": "#af54d8",
  "rgb": {
    "r": 175,
    "g": 84,
    "b": 216
  },
  "hsl": {
    "h": 281.364,
    "s": 62.857,
    "l": 58.824
  },
  "oklch": {
    "l": 0.61368,
    "c": 0.20416,
    "h": 313.8
  },
  "luminance": 0.20412
}

Semantic roles & 50–950 ramp

primary
#AF54D8
secondary
#BADEAA
accent
#E64275
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF54D8

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

Preview Lab → · Contrast checker → · Palette generator →

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