#AC51E5#AC51E5

#AC51E5 is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.5% C 0.220 H 309.7°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#AC51E5
RGBrgb(172, 81, 229)
HSLhsl(277, 74%, 61%)
HSVhsv(277, 65%, 90%)
CMYKcmyk(24.9%, 64.6%, 0%, 10.2%)
CIE-LABlab(52.19, 61.35, -60.03)
CIE-LCHlch(52.19, 85.83, 315.62°)
OKLaboklab(61.46% 0.1407 -0.1695)
OKLCHoklch(61.46% 0.22 309.7)
XYZxyz(34.0958, 20.3133, 76.2383)
Luminance0.2031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC51E5 #8AE551
analogous
#6251E5 #AC51E5 #E551D4
triadic
#AC51E5 #E5AC51 #51E5AC
tetradic
#AC51E5 #E56251 #8AE551 #51D4E5
square
#AC51E5 #E56251 #8AE551 #51D4E5
split-complementary
#AC51E5 #D4E551 #51E562
monochromatic
#6E18A3 #9220D8 #AC51E5 #C586ED #DFBBF5

Accessibility & contrast

On white

4.15
#AC51E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#AC51E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AC51E5
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC51E5#FFFFFF#000000##000000
##AC51E51.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079E9
Deuteranopia (green-blind)
#3B7EE2
Tritanopia (blue-blind)
#A46F94
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ac51e5;
/* rgb */ color: rgb(172, 81, 229);
/* oklch */ color: oklch(61.5% 0.220 309.7);
Tailwind
colors: {
  custom: {
    50: '#c987ee',
    500: '#ac51e5',
    950: '#000000',
  },
}
SCSS
$custom: #ac51e5;
$custom-light: #c987ee;
$custom-dark: #000000;
JSON
{
  "hex": "#ac51e5",
  "rgb": {
    "r": 172,
    "g": 81,
    "b": 229
  },
  "hsl": {
    "h": 276.892,
    "s": 74,
    "l": 60.784
  },
  "oklch": {
    "l": 0.61456,
    "c": 0.22028,
    "h": 309.7
  },
  "luminance": 0.20313
}

Semantic roles & 50–950 ramp

primary
#AC51E5
secondary
#C2E5AD
accent
#D60F5C
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AC51E5

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

Preview Lab → · Contrast checker → · Palette generator →

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