#5A45AE#5A45AE

#5A45AE is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.1% C 0.160 H 287.8°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#5A45AE
RGBrgb(90, 69, 174)
HSLhsl(252, 43%, 48%)
HSVhsv(252, 60%, 68%)
CMYKcmyk(48.3%, 60.3%, 0%, 31.8%)
CIE-LABlab(36.90, 35.92, -53.37)
CIE-LCHlch(36.90, 64.33, 303.94°)
OKLaboklab(47.11% 0.0491 -0.1526)
OKLCHoklch(47.11% 0.16 287.8)
XYZxyz(13.9823, 9.4853, 41.1303)
Luminance0.0949 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A45AE #99AE45
analogous
#4564AE #5A45AE #8E45AE
triadic
#5A45AE #AE5A45 #45AE5A
tetradic
#5A45AE #AE4564 #99AE45 #45AE8E
square
#5A45AE #AE4564 #99AE45 #45AE8E
split-complementary
#5A45AE #AE8E45 #64AE45
monochromatic
#2D2256 #433482 #5A45AE #7D6CC5 #A497D6

Accessibility & contrast

On white

7.25
#5A45AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#5A45AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A45AE
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A45AE#FFFFFF#000000##FFFFFF
##5A45AE1.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B1
Deuteranopia (green-blind)
#0054AC
Tritanopia (blue-blind)
#3E5D73
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5a45ae;
/* rgb */ color: rgb(90, 69, 174);
/* oklch */ color: oklch(47.1% 0.160 287.8);
Tailwind
colors: {
  custom: {
    50: '#8f79c7',
    500: '#5a45ae',
    950: '#000000',
  },
}
SCSS
$custom: #5a45ae;
$custom-light: #8f79c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a45ae",
  "rgb": {
    "r": 90,
    "g": 69,
    "b": 174
  },
  "hsl": {
    "h": 252,
    "s": 43.21,
    "l": 47.647
  },
  "oklch": {
    "l": 0.47111,
    "c": 0.16026,
    "h": 287.8
  },
  "luminance": 0.09486
}

Semantic roles & 50–950 ramp

primary
#5A45AE
secondary
#B7C28D
accent
#D355BA
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5A45AE

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

Preview Lab → · Contrast checker → · Palette generator →

#5A45AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva