#AF54BC#AF54BC

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

Color values

HEX#AF54BC
RGBrgb(175, 84, 188)
HSLhsl(293, 44%, 53%)
HSVhsv(293, 55%, 74%)
CMYKcmyk(6.9%, 55.3%, 0%, 26.3%)
CIE-LABlab(50.79, 52.27, -38.81)
CIE-LCHlch(50.79, 65.10, 323.40°)
OKLaboklab(59.78% 0.1401 -0.1075)
OKLCHoklch(59.78% 0.177 322.5)
XYZxyz(29.9257, 19.0869, 49.6750)
Luminance0.1908 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF54BC #61BC54
analogous
#7B54BC #AF54BC #BC5495
triadic
#AF54BC #BCAF54 #54BCAF
tetradic
#AF54BC #BC7B54 #61BC54 #5495BC
square
#AF54BC #BC7B54 #61BC54 #5495BC
split-complementary
#AF54BC #95BC54 #54BC7B
monochromatic
#632A6B #8C3B97 #AF54BC #C480CD #D8ACDE

Accessibility & contrast

On white

4.36
#AF54BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#AF54BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF54BC
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF54BC#FFFFFF#000000##000000
##AF54BC1.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4372BF
Deuteranopia (green-blind)
#617DB9
Tritanopia (blue-blind)
#B16280
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af54bc;
/* rgb */ color: rgb(175, 84, 188);
/* oklch */ color: oklch(59.8% 0.177 322.5);
Tailwind
colors: {
  custom: {
    50: '#c988d0',
    500: '#af54bc',
    950: '#000000',
  },
}
SCSS
$custom: #af54bc;
$custom-light: #c988d0;
$custom-dark: #000000;
JSON
{
  "hex": "#af54bc",
  "rgb": {
    "r": 175,
    "g": 84,
    "b": 188
  },
  "hsl": {
    "h": 292.5,
    "s": 43.697,
    "l": 53.333
  },
  "oklch": {
    "l": 0.59775,
    "c": 0.17662,
    "h": 322.5
  },
  "luminance": 0.19085
}

Semantic roles & 50–950 ramp

primary
#AF54BC
secondary
#A5CCA0
accent
#D35464
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AF54BC

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

Preview Lab → · Contrast checker → · Palette generator →

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