#AA45E2#AA45E2

#AA45E2 is a mid, highly saturated violet. Relative luminance 0.183; OKLCH L 59.7% C 0.232 H 310.7°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#AA45E2
RGBrgb(170, 69, 226)
HSLhsl(279, 73%, 58%)
HSVhsv(279, 69%, 89%)
CMYKcmyk(24.8%, 69.5%, 0%, 11.4%)
CIE-LABlab(49.85, 65.55, -62.11)
CIE-LCHlch(49.85, 90.30, 316.54°)
OKLaboklab(59.66% 0.1511 -0.1756)
OKLCHoklch(59.66% 0.232 310.7)
XYZxyz(32.4305, 18.2940, 73.7595)
Luminance0.1829 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA45E2 #7DE245
analogous
#5C45E2 #AA45E2 #E245CB
triadic
#AA45E2 #E2AA45 #45E2AA
tetradic
#AA45E2 #E25C45 #7DE245 #45CBE2
square
#AA45E2 #E25C45 #7DE245 #45CBE2
split-complementary
#AA45E2 #CBE245 #45E25C
monochromatic
#681795 #8D20CA #AA45E2 #C27AEA #DAAFF3

Accessibility & contrast

On white

4.51
#AA45E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#AA45E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA45E2
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA45E2#FFFFFF#000000##000000
##AA45E21.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072E7
Deuteranopia (green-blind)
#2C78DF
Tritanopia (blue-blind)
#A3678F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #aa45e2;
/* rgb */ color: rgb(170, 69, 226);
/* oklch */ color: oklch(59.7% 0.232 310.7);
Tailwind
colors: {
  custom: {
    50: '#c881ec',
    500: '#aa45e2',
    950: '#000000',
  },
}
SCSS
$custom: #aa45e2;
$custom-light: #c881ec;
$custom-dark: #000000;
JSON
{
  "hex": "#aa45e2",
  "rgb": {
    "r": 170,
    "g": 69,
    "b": 226
  },
  "hsl": {
    "h": 278.599,
    "s": 73.023,
    "l": 57.843
  },
  "oklch": {
    "l": 0.59664,
    "c": 0.23172,
    "h": 310.7
  },
  "luminance": 0.18293
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AA45E2

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

Preview Lab → · Contrast checker → · Palette generator →

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