#AC51CB#AC51CB

#AC51CB is a mid, vivid purple. Relative luminance 0.190; OKLCH L 59.8% C 0.194 H 316.6°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#AC51CB
RGBrgb(172, 81, 203)
HSLhsl(285, 54%, 56%)
HSVhsv(285, 60%, 80%)
CMYKcmyk(15.3%, 60.1%, 0%, 20.4%)
CIE-LABlab(50.65, 55.90, -47.70)
CIE-LCHlch(50.65, 73.49, 319.52°)
OKLaboklab(59.85% 0.1412 -0.1335)
OKLCHoklch(59.85% 0.194 316.6)
XYZxyz(30.7336, 18.9684, 58.5307)
Luminance0.1897 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC51CB #70CB51
analogous
#6F51CB #AC51CB #CB51AD
triadic
#AC51CB #CBAC51 #51CBAC
tetradic
#AC51CB #CB6F51 #70CB51 #51ADCB
square
#AC51CB #CB6F51 #70CB51 #51ADCB
split-complementary
#AC51CB #ADCB51 #51CB6F
monochromatic
#66257C #8D33AC #AC51CB #C280D9 #D9AFE7

Accessibility & contrast

On white

4.38
#AC51CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#AC51CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AC51CB
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC51CB#FFFFFF#000000##000000
##AC51CB1.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E73CF
Deuteranopia (green-blind)
#537BC8
Tritanopia (blue-blind)
#AB6686
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ac51cb;
/* rgb */ color: rgb(172, 81, 203);
/* oklch */ color: oklch(59.8% 0.194 316.6);
Tailwind
colors: {
  custom: {
    50: '#c887db',
    500: '#ac51cb',
    950: '#000000',
  },
}
SCSS
$custom: #ac51cb;
$custom-light: #c887db;
$custom-dark: #000000;
JSON
{
  "hex": "#ac51cb",
  "rgb": {
    "r": 172,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 284.754,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.59848,
    "c": 0.19432,
    "h": 316.6
  },
  "luminance": 0.18967
}

Semantic roles & 50–950 ramp

primary
#AC51CB
secondary
#AFD5A3
accent
#DD4A70
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AC51CB

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

Preview Lab → · Contrast checker → · Palette generator →

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