#5A33AA#5A33AA

#5A33AA is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.0% C 0.179 H 292.5°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#5A33AA
RGBrgb(90, 51, 170)
HSLhsl(260, 54%, 43%)
HSVhsv(260, 70%, 67%)
CMYKcmyk(47.1%, 70%, 0%, 33.3%)
CIE-LABlab(32.80, 44.98, -57.65)
CIE-LCHlch(32.80, 73.13, 307.96°)
OKLaboklab(44.04% 0.0685 -0.1652)
OKLCHoklch(44.04% 0.179 292.5)
XYZxyz(12.6540, 7.4432, 38.7924)
Luminance0.0744 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A33AA #83AA33
analogous
#3347AA #5A33AA #9533AA
triadic
#5A33AA #AA5A33 #33AA5A
tetradic
#5A33AA #AA3347 #83AA33 #33AA95
square
#5A33AA #AA3347 #83AA33 #33AA95
split-complementary
#5A33AA #AA9533 #47AA33
monochromatic
#28174C #41257B #5A33AA #7850CA #9C7FD9

Accessibility & contrast

On white

8.44
#5A33AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#5A33AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A33AA
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A33AA#FFFFFF#000000##FFFFFF
##5A33AA1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAE
Deuteranopia (green-blind)
#004BA8
Tritanopia (blue-blind)
#42516A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5a33aa;
/* rgb */ color: rgb(90, 51, 170);
/* oklch */ color: oklch(44.0% 0.179 292.5);
Tailwind
colors: {
  custom: {
    50: '#906ec4',
    500: '#5a33aa',
    950: '#000000',
  },
}
SCSS
$custom: #5a33aa;
$custom-light: #906ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a33aa",
  "rgb": {
    "r": 90,
    "g": 51,
    "b": 170
  },
  "hsl": {
    "h": 259.664,
    "s": 53.846,
    "l": 43.333
  },
  "oklch": {
    "l": 0.44042,
    "c": 0.17881,
    "h": 292.5
  },
  "luminance": 0.07444
}

Semantic roles & 50–950 ramp

primary
#5A33AA
secondary
#A9C277
accent
#DD4BAD
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5A33AA

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

Preview Lab → · Contrast checker → · Palette generator →

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