#AF54D9#AF54D9

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

Color values

HEX#AF54D9
RGBrgb(175, 84, 217)
HSLhsl(281, 64%, 59%)
HSVhsv(281, 61%, 85%)
CMYKcmyk(19.4%, 61.3%, 0%, 14.9%)
CIE-LABlab(52.36, 58.08, -52.95)
CIE-LCHlch(52.36, 78.59, 317.65°)
OKLaboklab(61.43% 0.1414 -0.1487)
OKLCHoklch(61.43% 0.205 313.5)
XYZxyz(33.3718, 20.4653, 67.8244)
Luminance0.2046 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF54D9 #7ED954
analogous
#6D54D9 #AF54D9 #D954C0
triadic
#AF54D9 #D9AF54 #54D9AF
tetradic
#AF54D9 #D96D54 #7ED954 #54C0D9
square
#AF54D9 #D96D54 #7ED954 #54C0D9
split-complementary
#AF54D9 #C0D954 #54D96D
monochromatic
#6E2092 #942CC4 #AF54D9 #C686E4 #DEB8EF

Accessibility & contrast

On white

4.12
#AF54D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#AF54D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF54D9
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF54D9#FFFFFF#000000##000000
##AF54D91.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2378DD
Deuteranopia (green-blind)
#4E7FD6
Tritanopia (blue-blind)
#AB6C8F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af54d9;
/* rgb */ color: rgb(175, 84, 217);
/* oklch */ color: oklch(61.4% 0.205 313.5);
Tailwind
colors: {
  custom: {
    50: '#ca89e5',
    500: '#af54d9',
    950: '#000000',
  },
}
SCSS
$custom: #af54d9;
$custom-light: #ca89e5;
$custom-dark: #000000;
JSON
{
  "hex": "#af54d9",
  "rgb": {
    "r": 175,
    "g": 84,
    "b": 217
  },
  "hsl": {
    "h": 281.053,
    "s": 63.636,
    "l": 59.02
  },
  "oklch": {
    "l": 0.61428,
    "c": 0.20516,
    "h": 313.5
  },
  "luminance": 0.20464
}

Semantic roles & 50–950 ramp

primary
#AF54D9
secondary
#BBDFAA
accent
#E74175
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF54D9

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

Preview Lab → · Contrast checker → · Palette generator →

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