#AF54BD#AF54BD

#AF54BD is a mid, vivid purple. Relative luminance 0.191; OKLCH L 59.8% C 0.178 H 322.1°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#AF54BD
RGBrgb(175, 84, 189)
HSLhsl(292, 44%, 54%)
HSVhsv(292, 56%, 74%)
CMYKcmyk(7.4%, 55.6%, 0%, 25.9%)
CIE-LABlab(50.84, 52.46, -39.31)
CIE-LCHlch(50.84, 65.56, 323.15°)
OKLaboklab(59.83% 0.1402 -0.109)
OKLCHoklch(59.83% 0.178 322.1)
XYZxyz(30.0339, 19.1302, 50.2447)
Luminance0.1913 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF54BD #62BD54
analogous
#7A54BD #AF54BD #BD5496
triadic
#AF54BD #BDAF54 #54BDAF
tetradic
#AF54BD #BD7A54 #62BD54 #5496BD
square
#AF54BD #BD7A54 #62BD54 #5496BD
split-complementary
#AF54BD #96BD54 #54BD7A
monochromatic
#642A6D #8C3B99 #AF54BD #C480CE #D8ACDF

Accessibility & contrast

On white

4.35
#AF54BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#AF54BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF54BD
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF54BD#FFFFFF#000000##000000
##AF54BD1.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4272C0
Deuteranopia (green-blind)
#607DBA
Tritanopia (blue-blind)
#B16381
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af54bd;
/* rgb */ color: rgb(175, 84, 189);
/* oklch */ color: oklch(59.8% 0.178 322.1);
Tailwind
colors: {
  custom: {
    50: '#c988d1',
    500: '#af54bd',
    950: '#000000',
  },
}
SCSS
$custom: #af54bd;
$custom-light: #c988d1;
$custom-dark: #000000;
JSON
{
  "hex": "#af54bd",
  "rgb": {
    "r": 175,
    "g": 84,
    "b": 189
  },
  "hsl": {
    "h": 292,
    "s": 44.304,
    "l": 53.529
  },
  "oklch": {
    "l": 0.59828,
    "c": 0.17757,
    "h": 322.1
  },
  "luminance": 0.19129
}

Semantic roles & 50–950 ramp

primary
#AF54BD
secondary
#A6CDA0
accent
#D45465
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AF54BD

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

Preview Lab → · Contrast checker → · Palette generator →

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