#AC51EA#AC51EA

#AC51EA is a mid, highly saturated violet. Relative luminance 0.206; OKLCH L 61.8% C 0.225 H 308.5°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#AC51EA
RGBrgb(172, 81, 234)
HSLhsl(276, 78%, 62%)
HSVhsv(276, 65%, 92%)
CMYKcmyk(26.5%, 65.4%, 0%, 8.2%)
CIE-LABlab(52.51, 62.43, -62.33)
CIE-LCHlch(52.51, 88.22, 315.04°)
OKLaboklab(61.78% 0.1403 -0.1763)
OKLCHoklch(61.78% 0.225 308.5)
XYZxyz(34.8040, 20.5966, 79.9680)
Luminance0.2060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC51EA #8FEA51
analogous
#6051EA #AC51EA #EA51DC
triadic
#AC51EA #EAAC51 #51EAAC
tetradic
#AC51EA #EA6051 #8FEA51 #51DCEA
square
#AC51EA #EA6051 #8FEA51 #51DCEA
split-complementary
#AC51EA #DCEA51 #51EA60
monochromatic
#6F15AC #921BE2 #AC51EA #C688F1 #E0BEF7

Accessibility & contrast

On white

4.10
#AC51EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#AC51EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AC51EA
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC51EA#FFFFFF#000000##000000
##AC51EA1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AEF
Deuteranopia (green-blind)
#347EE7
Tritanopia (blue-blind)
#A37197
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ac51ea;
/* rgb */ color: rgb(172, 81, 234);
/* oklch */ color: oklch(61.8% 0.225 308.5);
Tailwind
colors: {
  custom: {
    50: '#c988f1',
    500: '#ac51ea',
    950: '#000000',
  },
}
SCSS
$custom: #ac51ea;
$custom-light: #c988f1;
$custom-dark: #000000;
JSON
{
  "hex": "#ac51ea",
  "rgb": {
    "r": 172,
    "g": 81,
    "b": 234
  },
  "hsl": {
    "h": 275.686,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.61783,
    "c": 0.22531,
    "h": 308.5
  },
  "luminance": 0.20596
}

Semantic roles & 50–950 ramp

primary
#AC51EA
secondary
#C6E8AF
accent
#DB0B5F
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AC51EA

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

Preview Lab → · Contrast checker → · Palette generator →

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