#AF54CE#AF54CE

#AF54CE is a mid, vivid purple. Relative luminance 0.199; OKLCH L 60.8% C 0.194 H 316.7°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#AF54CE
RGBrgb(175, 84, 206)
HSLhsl(285, 55%, 57%)
HSVhsv(285, 59%, 81%)
CMYKcmyk(15%, 59.2%, 0%, 19.2%)
CIE-LABlab(51.74, 55.82, -47.67)
CIE-LCHlch(51.74, 73.41, 319.50°)
OKLaboklab(60.78% 0.1412 -0.1333)
OKLCHoklch(60.78% 0.194 316.7)
XYZxyz(31.9884, 19.9120, 60.5389)
Luminance0.1991 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF54CE #73CE54
analogous
#7254CE #AF54CE #CE54B0
triadic
#AF54CE #CEAF54 #54CEAF
tetradic
#AF54CE #CE7254 #73CE54 #54B0CE
square
#AF54CE #CE7254 #73CE54 #54B0CE
split-complementary
#AF54CE #B0CE54 #54CE72
monochromatic
#6B2582 #9233B2 #AF54CE #C584DC #DCB3E9

Accessibility & contrast

On white

4.22
#AF54CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#AF54CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF54CE
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF54CE#FFFFFF#000000##000000
##AF54CE1.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3276D2
Deuteranopia (green-blind)
#567ECB
Tritanopia (blue-blind)
#AE6989
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af54ce;
/* rgb */ color: rgb(175, 84, 206);
/* oklch */ color: oklch(60.8% 0.194 316.7);
Tailwind
colors: {
  custom: {
    50: '#ca89dd',
    500: '#af54ce',
    950: '#000000',
  },
}
SCSS
$custom: #af54ce;
$custom-light: #ca89dd;
$custom-dark: #000000;
JSON
{
  "hex": "#af54ce",
  "rgb": {
    "r": 175,
    "g": 84,
    "b": 206
  },
  "hsl": {
    "h": 284.754,
    "s": 55.455,
    "l": 56.863
  },
  "oklch": {
    "l": 0.60776,
    "c": 0.19419,
    "h": 316.7
  },
  "luminance": 0.19911
}

Semantic roles & 50–950 ramp

primary
#AF54CE
secondary
#B3D8A6
accent
#DF496F
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF54CE

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

Preview Lab → · Contrast checker → · Palette generator →

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