#AF54CD#AF54CD

#AF54CD is a mid, vivid purple. Relative luminance 0.199; OKLCH L 60.7% C 0.193 H 317.0°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#AF54CD
RGBrgb(175, 84, 205)
HSLhsl(285, 55%, 57%)
HSVhsv(285, 59%, 80%)
CMYKcmyk(14.6%, 59%, 0%, 19.6%)
CIE-LABlab(51.68, 55.62, -47.18)
CIE-LCHlch(51.68, 72.94, 319.69°)
OKLaboklab(60.72% 0.1412 -0.1319)
OKLCHoklch(60.72% 0.193 317)
XYZxyz(31.8674, 19.8636, 59.9012)
Luminance0.1986 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF54CD #72CD54
analogous
#7354CD #AF54CD #CD54AF
triadic
#AF54CD #CDAF54 #54CDAF
tetradic
#AF54CD #CD7354 #72CD54 #54AFCD
square
#AF54CD #CD7354 #72CD54 #54AFCD
split-complementary
#AF54CD #AFCD54 #54CD73
monochromatic
#6A2681 #9134B0 #AF54CD #C583DB #DBB3E9

Accessibility & contrast

On white

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

On black

4.97
#AF54CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF54CD
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF54CD#FFFFFF#000000##000000
##AF54CD1.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3375D1
Deuteranopia (green-blind)
#577ECA
Tritanopia (blue-blind)
#AE6889
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af54cd;
/* rgb */ color: rgb(175, 84, 205);
/* oklch */ color: oklch(60.7% 0.193 317.0);
Tailwind
colors: {
  custom: {
    50: '#ca89dd',
    500: '#af54cd',
    950: '#000000',
  },
}
SCSS
$custom: #af54cd;
$custom-light: #ca89dd;
$custom-dark: #000000;
JSON
{
  "hex": "#af54cd",
  "rgb": {
    "r": 175,
    "g": 84,
    "b": 205
  },
  "hsl": {
    "h": 285.124,
    "s": 54.751,
    "l": 56.667
  },
  "oklch": {
    "l": 0.60718,
    "c": 0.1932,
    "h": 317
  },
  "luminance": 0.19862
}

Semantic roles & 50–950 ramp

primary
#AF54CD
secondary
#B2D7A6
accent
#DE4A6E
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF54CD

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

Preview Lab → · Contrast checker → · Palette generator →

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