#5A33B5#5A33B5

#5A33B5 is a dark, vivid violet. Relative luminance 0.079; OKLCH L 45.0% C 0.192 H 290.2°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#5A33B5
RGBrgb(90, 51, 181)
HSLhsl(258, 56%, 45%)
HSVhsv(258, 72%, 71%)
CMYKcmyk(50.3%, 71.8%, 0%, 29%)
CIE-LABlab(33.73, 48.07, -62.69)
CIE-LCHlch(33.73, 79.00, 307.48°)
OKLaboklab(44.99% 0.0664 -0.18)
OKLCHoklch(44.99% 0.192 290.2)
XYZxyz(13.7384, 7.8769, 44.5036)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A33B5 #8EB533
analogous
#334DB5 #5A33B5 #9B33B5
triadic
#5A33B5 #B55A33 #33B55A
tetradic
#5A33B5 #B5334D #8EB533 #33B59B
square
#5A33B5 #B5334D #8EB533 #33B59B
split-complementary
#5A33B5 #B59B33 #4DB533
monochromatic
#2B1856 #422685 #5A33B5 #7A56CF #A086DD

Accessibility & contrast

On white

8.15
#5A33B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5A33B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A33B5
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A33B5#FFFFFF#000000##FFFFFF
##5A33B51.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B9
Deuteranopia (green-blind)
#004CB2
Tritanopia (blue-blind)
#3B5571
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5a33b5;
/* rgb */ color: rgb(90, 51, 181);
/* oklch */ color: oklch(45.0% 0.192 290.2);
Tailwind
colors: {
  custom: {
    50: '#916ecc',
    500: '#5a33b5',
    950: '#000000',
  },
}
SCSS
$custom: #5a33b5;
$custom-light: #916ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a33b5",
  "rgb": {
    "r": 90,
    "g": 51,
    "b": 181
  },
  "hsl": {
    "h": 258,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.44992,
    "c": 0.19181,
    "h": 290.2
  },
  "luminance": 0.07878
}

Semantic roles & 50–950 ramp

primary
#5A33B5
secondary
#B1C67D
accent
#DF48B2
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A33B5

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

Preview Lab → · Contrast checker → · Palette generator →

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