#5A33AB#5A33AB

#5A33AB is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.1% C 0.180 H 292.3°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#5A33AB
RGBrgb(90, 51, 171)
HSLhsl(260, 54%, 44%)
HSVhsv(260, 70%, 67%)
CMYKcmyk(47.4%, 70.2%, 0%, 32.9%)
CIE-LABlab(32.88, 45.26, -58.12)
CIE-LCHlch(32.88, 73.66, 307.91°)
OKLaboklab(44.13% 0.0683 -0.1665)
OKLCHoklch(44.13% 0.18 292.3)
XYZxyz(12.7489, 7.4812, 39.2925)
Luminance0.0748 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A33AB #84AB33
analogous
#3348AB #5A33AB #9633AB
triadic
#5A33AB #AB5A33 #33AB5A
tetradic
#5A33AB #AB3348 #84AB33 #33AB96
square
#5A33AB #AB3348 #84AB33 #33AB96
split-complementary
#5A33AB #AB9633 #48AB33
monochromatic
#28174D #41257C #5A33AB #7850CB #9D7FD9

Accessibility & contrast

On white

8.41
#5A33AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A33AB
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A33AB#FFFFFF#000000##FFFFFF
##5A33AB1.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAF
Deuteranopia (green-blind)
#004BA9
Tritanopia (blue-blind)
#41516B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5a33ab;
/* rgb */ color: rgb(90, 51, 171);
/* oklch */ color: oklch(44.1% 0.180 292.3);
Tailwind
colors: {
  custom: {
    50: '#906ec5',
    500: '#5a33ab',
    950: '#000000',
  },
}
SCSS
$custom: #5a33ab;
$custom-light: #906ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a33ab",
  "rgb": {
    "r": 90,
    "g": 51,
    "b": 171
  },
  "hsl": {
    "h": 259.5,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.44127,
    "c": 0.18,
    "h": 292.3
  },
  "luminance": 0.07482
}

Semantic roles & 50–950 ramp

primary
#5A33AB
secondary
#AAC278
accent
#DD4AAE
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5A33AB

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

Preview Lab → · Contrast checker → · Palette generator →

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