#AC51E8#AC51E8

#AC51E8 is a mid, highly saturated violet. Relative luminance 0.205; OKLCH L 61.7% C 0.223 H 309.0°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#AC51E8
RGBrgb(172, 81, 232)
HSLhsl(276, 77%, 61%)
HSVhsv(276, 65%, 91%)
CMYKcmyk(25.9%, 65.1%, 0%, 9%)
CIE-LABlab(52.38, 62.00, -61.41)
CIE-LCHlch(52.38, 87.27, 315.27°)
OKLaboklab(61.65% 0.1404 -0.1736)
OKLCHoklch(61.65% 0.223 309)
XYZxyz(34.5183, 20.4823, 78.4634)
Luminance0.2048 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC51E8 #8DE851
analogous
#6151E8 #AC51E8 #E851D9
triadic
#AC51E8 #E8AC51 #51E8AC
tetradic
#AC51E8 #E86151 #8DE851 #51D9E8
square
#AC51E8 #E86151 #8DE851 #51D9E8
split-complementary
#AC51E8 #D9E851 #51E861
monochromatic
#6E16A8 #921DDE #AC51E8 #C687EF #E0BDF6

Accessibility & contrast

On white

4.12
#AC51E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#AC51E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AC51E8
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC51E8#FFFFFF#000000##000000
##AC51E81.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079ED
Deuteranopia (green-blind)
#377EE5
Tritanopia (blue-blind)
#A37096
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ac51e8;
/* rgb */ color: rgb(172, 81, 232);
/* oklch */ color: oklch(61.7% 0.223 309.0);
Tailwind
colors: {
  custom: {
    50: '#c988f0',
    500: '#ac51e8',
    950: '#000000',
  },
}
SCSS
$custom: #ac51e8;
$custom-light: #c988f0;
$custom-dark: #000000;
JSON
{
  "hex": "#ac51e8",
  "rgb": {
    "r": 172,
    "g": 81,
    "b": 232
  },
  "hsl": {
    "h": 276.159,
    "s": 76.65,
    "l": 61.373
  },
  "oklch": {
    "l": 0.61652,
    "c": 0.22329,
    "h": 309
  },
  "luminance": 0.20482
}

Semantic roles & 50–950 ramp

primary
#AC51E8
secondary
#C5E7AE
accent
#D90D5E
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AC51E8

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

Preview Lab → · Contrast checker → · Palette generator →

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