#AC45E8#AC45E8

#AC45E8 is a mid, highly saturated violet. Relative luminance 0.189; OKLCH L 60.3% C 0.238 H 310.0°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#AC45E8
RGBrgb(172, 69, 232)
HSLhsl(278, 78%, 59%)
HSVhsv(278, 70%, 91%)
CMYKcmyk(25.9%, 70.3%, 0%, 9%)
CIE-LABlab(50.52, 67.20, -64.42)
CIE-LCHlch(50.52, 93.09, 316.21°)
OKLaboklab(60.32% 0.1529 -0.1824)
OKLCHoklch(60.32% 0.238 310)
XYZxyz(33.7040, 18.8538, 78.1919)
Luminance0.1885 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC45E8 #81E845
analogous
#5B45E8 #AC45E8 #E845D3
triadic
#AC45E8 #E8AC45 #45E8AC
tetradic
#AC45E8 #E85B45 #81E845 #45D3E8
square
#AC45E8 #E85B45 #81E845 #45D3E8
split-complementary
#AC45E8 #D3E845 #45E85B
monochromatic
#6C149F #911AD5 #AC45E8 #C47BEF #DDB2F5

Accessibility & contrast

On white

4.40
#AC45E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#AC45E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AC45E8
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC45E8#FFFFFF#000000##000000
##AC45E81.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074ED
Deuteranopia (green-blind)
#257AE4
Tritanopia (blue-blind)
#A46992
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ac45e8;
/* rgb */ color: rgb(172, 69, 232);
/* oklch */ color: oklch(60.3% 0.238 310.0);
Tailwind
colors: {
  custom: {
    50: '#ca81f0',
    500: '#ac45e8',
    950: '#000000',
  },
}
SCSS
$custom: #ac45e8;
$custom-light: #ca81f0;
$custom-dark: #000000;
JSON
{
  "hex": "#ac45e8",
  "rgb": {
    "r": 172,
    "g": 69,
    "b": 232
  },
  "hsl": {
    "h": 277.914,
    "s": 77.99,
    "l": 59.02
  },
  "oklch": {
    "l": 0.60319,
    "c": 0.23799,
    "h": 310
  },
  "luminance": 0.18853
}

Semantic roles & 50–950 ramp

primary
#AC45E8
secondary
#BCE4A4
accent
#F4337A
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B17
muted
#827C85

Preview Lab

Preview with #AC45E8

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

Preview Lab → · Contrast checker → · Palette generator →

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