#AF54CA#AF54CA

#AF54CA is a mid, vivid purple. Relative luminance 0.197; OKLCH L 60.5% C 0.190 H 317.9°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#AF54CA
RGBrgb(175, 84, 202)
HSLhsl(286, 53%, 56%)
HSVhsv(286, 58%, 79%)
CMYKcmyk(13.4%, 58.4%, 0%, 20.8%)
CIE-LABlab(51.52, 55.01, -45.72)
CIE-LCHlch(51.52, 71.54, 320.27°)
OKLaboklab(60.55% 0.1411 -0.1276)
OKLCHoklch(60.55% 0.19 317.9)
XYZxyz(31.5087, 19.7201, 58.0123)
Luminance0.1972 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF54CA #6FCA54
analogous
#7454CA #AF54CA #CA54AA
triadic
#AF54CA #CAAF54 #54CAAF
tetradic
#AF54CA #CA7454 #6FCA54 #54AACA
square
#AF54CA #CA7454 #6FCA54 #54AACA
split-complementary
#AF54CA #AACA54 #54CA74
monochromatic
#69277D #9135AC #AF54CA #C583D8 #DBB1E7

Accessibility & contrast

On white

4.25
#AF54CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#AF54CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF54CA
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF54CA#FFFFFF#000000##000000
##AF54CA1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3775CE
Deuteranopia (green-blind)
#597EC7
Tritanopia (blue-blind)
#AE6787
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af54ca;
/* rgb */ color: rgb(175, 84, 202);
/* oklch */ color: oklch(60.5% 0.190 317.9);
Tailwind
colors: {
  custom: {
    50: '#ca89db',
    500: '#af54ca',
    950: '#000000',
  },
}
SCSS
$custom: #af54ca;
$custom-light: #ca89db;
$custom-dark: #000000;
JSON
{
  "hex": "#af54ca",
  "rgb": {
    "r": 175,
    "g": 84,
    "b": 202
  },
  "hsl": {
    "h": 286.271,
    "s": 52.679,
    "l": 56.078
  },
  "oklch": {
    "l": 0.60546,
    "c": 0.19023,
    "h": 317.9
  },
  "luminance": 0.19719
}

Semantic roles & 50–950 ramp

primary
#AF54CA
secondary
#B0D5A5
accent
#DC4C6D
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF54CA

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

Preview Lab → · Contrast checker → · Palette generator →

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