#AC54E4#AC54E4

#AC54E4 is a mid, highly saturated violet. Relative luminance 0.207; OKLCH L 61.8% C 0.215 H 309.6°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#AC54E4
RGBrgb(172, 84, 228)
HSLhsl(277, 73%, 61%)
HSVhsv(277, 63%, 89%)
CMYKcmyk(24.6%, 63.2%, 0%, 10.6%)
CIE-LABlab(52.63, 59.74, -58.75)
CIE-LCHlch(52.63, 83.79, 315.48°)
OKLaboklab(61.76% 0.1373 -0.1658)
OKLCHoklch(61.76% 0.215 309.6)
XYZxyz(34.1844, 20.7134, 75.5810)
Luminance0.2071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC54E4 #8CE454
analogous
#6454E4 #AC54E4 #E454D4
triadic
#AC54E4 #E4AC54 #54E4AC
tetradic
#AC54E4 #E46454 #8CE454 #54D4E4
square
#AC54E4 #E46454 #8CE454 #54D4E4
split-complementary
#AC54E4 #D4E454 #54E464
monochromatic
#6E1AA4 #9222D9 #AC54E4 #C689EC #DFBEF5

Accessibility & contrast

On white

4.08
#AC54E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#AC54E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AC54E4
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC54E4#FFFFFF#000000##000000
##AC54E41.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AE8
Deuteranopia (green-blind)
#407FE1
Tritanopia (blue-blind)
#A47195
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ac54e4;
/* rgb */ color: rgb(172, 84, 228);
/* oklch */ color: oklch(61.8% 0.215 309.6);
Tailwind
colors: {
  custom: {
    50: '#c989ed',
    500: '#ac54e4',
    950: '#000000',
  },
}
SCSS
$custom: #ac54e4;
$custom-light: #c989ed;
$custom-dark: #000000;
JSON
{
  "hex": "#ac54e4",
  "rgb": {
    "r": 172,
    "g": 84,
    "b": 228
  },
  "hsl": {
    "h": 276.667,
    "s": 72.727,
    "l": 61.176
  },
  "oklch": {
    "l": 0.61757,
    "c": 0.21528,
    "h": 309.6
  },
  "luminance": 0.20713
}

Semantic roles & 50–950 ramp

primary
#AC54E4
secondary
#C4E5AF
accent
#D5115D
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AC54E4

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

Preview Lab → · Contrast checker → · Palette generator →

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