#AC45E2#AC45E2

#AC45E2 is a mid, highly saturated violet. Relative luminance 0.185; OKLCH L 59.9% C 0.232 H 311.4°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#AC45E2
RGBrgb(172, 69, 226)
HSLhsl(279, 73%, 58%)
HSVhsv(279, 69%, 89%)
CMYKcmyk(23.9%, 69.5%, 0%, 11.4%)
CIE-LABlab(50.12, 65.95, -61.67)
CIE-LCHlch(50.12, 90.29, 316.92°)
OKLaboklab(59.91% 0.1537 -0.1743)
OKLCHoklch(59.91% 0.232 311.4)
XYZxyz(32.8663, 18.5187, 73.7799)
Luminance0.1852 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC45E2 #7BE245
analogous
#5D45E2 #AC45E2 #E245C9
triadic
#AC45E2 #E2AC45 #45E2AC
tetradic
#AC45E2 #E25D45 #7BE245 #45C9E2
square
#AC45E2 #E25D45 #7BE245 #45C9E2
split-complementary
#AC45E2 #C9E245 #45E25D
monochromatic
#6A1795 #9020CA #AC45E2 #C47AEA #DBAFF3

Accessibility & contrast

On white

4.46
#AC45E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#AC45E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AC45E2
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC45E2#FFFFFF#000000##000000
##AC45E21.004.464.704.70
#FFFFFF4.461.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072E7
Deuteranopia (green-blind)
#3079DF
Tritanopia (blue-blind)
#A5678F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ac45e2;
/* rgb */ color: rgb(172, 69, 226);
/* oklch */ color: oklch(59.9% 0.232 311.4);
Tailwind
colors: {
  custom: {
    50: '#c981ec',
    500: '#ac45e2',
    950: '#000000',
  },
}
SCSS
$custom: #ac45e2;
$custom-light: #c981ec;
$custom-dark: #000000;
JSON
{
  "hex": "#ac45e2",
  "rgb": {
    "r": 172,
    "g": 69,
    "b": 226
  },
  "hsl": {
    "h": 279.363,
    "s": 73.023,
    "l": 57.843
  },
  "oklch": {
    "l": 0.59911,
    "c": 0.23234,
    "h": 311.4
  },
  "luminance": 0.18518
}

Semantic roles & 50–950 ramp

primary
#AC45E2
secondary
#B8E1A2
accent
#F03877
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AC45E2

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

Preview Lab → · Contrast checker → · Palette generator →

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