#AF54BB#AF54BB

#AF54BB is a mid, vivid purple. Relative luminance 0.190; OKLCH L 59.7% C 0.176 H 322.9°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#AF54BB
RGBrgb(175, 84, 187)
HSLhsl(293, 43%, 53%)
HSVhsv(293, 55%, 73%)
CMYKcmyk(6.4%, 55.1%, 0%, 26.7%)
CIE-LABlab(50.74, 52.08, -38.31)
CIE-LCHlch(50.74, 64.65, 323.66°)
OKLaboklab(59.72% 0.14 -0.1061)
OKLCHoklch(59.72% 0.176 322.9)
XYZxyz(29.8183, 19.0439, 49.1093)
Luminance0.1904 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF54BB #60BB54
analogous
#7B54BB #AF54BB #BB5493
triadic
#AF54BB #BBAF54 #54BBAF
tetradic
#AF54BB #BB7B54 #60BB54 #5493BB
square
#AF54BB #BB7B54 #60BB54 #5493BB
split-complementary
#AF54BB #93BB54 #54BB7B
monochromatic
#632A6A #8C3C96 #AF54BB #C380CC #D8ACDE

Accessibility & contrast

On white

4.37
#AF54BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#AF54BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF54BB
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF54BB#FFFFFF#000000##000000
##AF54BB1.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4372BE
Deuteranopia (green-blind)
#617CB8
Tritanopia (blue-blind)
#B26280
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af54bb;
/* rgb */ color: rgb(175, 84, 187);
/* oklch */ color: oklch(59.7% 0.176 322.9);
Tailwind
colors: {
  custom: {
    50: '#c988d0',
    500: '#af54bb',
    950: '#000000',
  },
}
SCSS
$custom: #af54bb;
$custom-light: #c988d0;
$custom-dark: #000000;
JSON
{
  "hex": "#af54bb",
  "rgb": {
    "r": 175,
    "g": 84,
    "b": 187
  },
  "hsl": {
    "h": 293.01,
    "s": 43.096,
    "l": 53.137
  },
  "oklch": {
    "l": 0.59722,
    "c": 0.17566,
    "h": 322.9
  },
  "luminance": 0.19042
}

Semantic roles & 50–950 ramp

primary
#AF54BB
secondary
#A4CC9F
accent
#D35564
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AF54BB

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

Preview Lab → · Contrast checker → · Palette generator →

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