#AC51DB#AC51DB

#AC51DB is a mid, highly saturated violet. Relative luminance 0.198; OKLCH L 60.8% C 0.210 H 312.2°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#AC51DB
RGBrgb(172, 81, 219)
HSLhsl(280, 66%, 59%)
HSVhsv(280, 63%, 86%)
CMYKcmyk(21.5%, 63%, 0%, 14.1%)
CIE-LABlab(51.58, 59.21, -55.36)
CIE-LCHlch(51.58, 81.06, 316.93°)
OKLaboklab(60.82% 0.1411 -0.1558)
OKLCHoklch(60.82% 0.21 312.2)
XYZxyz(32.7396, 19.7708, 69.0956)
Luminance0.1977 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC51DB #80DB51
analogous
#6751DB #AC51DB #DB51C5
triadic
#AC51DB #DBAC51 #51DBAC
tetradic
#AC51DB #DB6751 #80DB51 #51C5DB
square
#AC51DB #DB6751 #80DB51 #51C5DB
split-complementary
#AC51DB #C5DB51 #51DB67
monochromatic
#6B1E93 #9029C6 #AC51DB #C484E5 #DCB6F0

Accessibility & contrast

On white

4.24
#AC51DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#AC51DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AC51DB
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC51DB#FFFFFF#000000##000000
##AC51DB1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0E76DF
Deuteranopia (green-blind)
#467DD8
Tritanopia (blue-blind)
#A76C8F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ac51db;
/* rgb */ color: rgb(172, 81, 219);
/* oklch */ color: oklch(60.8% 0.210 312.2);
Tailwind
colors: {
  custom: {
    50: '#c887e7',
    500: '#ac51db',
    950: '#000000',
  },
}
SCSS
$custom: #ac51db;
$custom-light: #c887e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ac51db",
  "rgb": {
    "r": 172,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 279.565,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.60818,
    "c": 0.21025,
    "h": 312.2
  },
  "luminance": 0.1977
}

Semantic roles & 50–950 ramp

primary
#AC51DB
secondary
#BBDFA9
accent
#E93F79
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AC51DB

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

Preview Lab → · Contrast checker → · Palette generator →

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