#5A33AC#5A33AC

#5A33AC is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.2% C 0.181 H 292.1°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#5A33AC
RGBrgb(90, 51, 172)
HSLhsl(259, 54%, 44%)
HSVhsv(259, 70%, 67%)
CMYKcmyk(47.7%, 70.3%, 0%, 32.5%)
CIE-LABlab(32.96, 45.54, -58.58)
CIE-LCHlch(32.96, 74.20, 307.86°)
OKLaboklab(44.21% 0.0682 -0.1679)
OKLCHoklch(44.21% 0.181 292.1)
XYZxyz(12.8446, 7.5194, 39.7963)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A33AC #85AC33
analogous
#3348AC #5A33AC #9633AC
triadic
#5A33AC #AC5A33 #33AC5A
tetradic
#5A33AC #AC3348 #85AC33 #33AC96
square
#5A33AC #AC3348 #85AC33 #33AC96
split-complementary
#5A33AC #AC9633 #48AC33
monochromatic
#29174E #41257D #5A33AC #7851CB #9D80D9

Accessibility & contrast

On white

8.39
#5A33AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#5A33AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A33AC
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A33AC#FFFFFF#000000##FFFFFF
##5A33AC1.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB0
Deuteranopia (green-blind)
#004BAA
Tritanopia (blue-blind)
#41526C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5a33ac;
/* rgb */ color: rgb(90, 51, 172);
/* oklch */ color: oklch(44.2% 0.181 292.1);
Tailwind
colors: {
  custom: {
    50: '#906ec6',
    500: '#5a33ac',
    950: '#000000',
  },
}
SCSS
$custom: #5a33ac;
$custom-light: #906ec6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a33ac",
  "rgb": {
    "r": 90,
    "g": 51,
    "b": 172
  },
  "hsl": {
    "h": 259.339,
    "s": 54.26,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44212,
    "c": 0.18119,
    "h": 292.1
  },
  "luminance": 0.0752
}

Semantic roles & 50–950 ramp

primary
#5A33AC
secondary
#ABC278
accent
#DE4AAE
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5A33AC

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

Preview Lab → · Contrast checker → · Palette generator →

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