#5A33A2#5A33A2

#5A33A2 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.4% C 0.169 H 294.4°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#5A33A2
RGBrgb(90, 51, 162)
HSLhsl(261, 52%, 42%)
HSVhsv(261, 69%, 64%)
CMYKcmyk(44.4%, 68.5%, 0%, 36.5%)
CIE-LABlab(32.15, 42.75, -53.90)
CIE-LCHlch(32.15, 68.80, 308.42°)
OKLaboklab(43.37% 0.0698 -0.1541)
OKLCHoklch(43.37% 0.169 294.4)
XYZxyz(11.9201, 7.1496, 34.9274)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A33A2 #7BA233
analogous
#3344A2 #5A33A2 #9233A2
triadic
#5A33A2 #A25A33 #33A25A
tetradic
#5A33A2 #A23344 #7BA233 #33A292
square
#5A33A2 #A23344 #7BA233 #33A292
split-complementary
#5A33A2 #A29233 #44A233
monochromatic
#261645 #402473 #5A33A2 #774CC7 #9A7AD5

Accessibility & contrast

On white

8.64
#5A33A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5A33A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A33A2
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A33A2#FFFFFF#000000##FFFFFF
##5A33A21.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#004AA0
Tritanopia (blue-blind)
#464E66
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5a33a2;
/* rgb */ color: rgb(90, 51, 162);
/* oklch */ color: oklch(43.4% 0.169 294.4);
Tailwind
colors: {
  custom: {
    50: '#8f6dbe',
    500: '#5a33a2',
    950: '#000000',
  },
}
SCSS
$custom: #5a33a2;
$custom-light: #8f6dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5a33a2",
  "rgb": {
    "r": 90,
    "g": 51,
    "b": 162
  },
  "hsl": {
    "h": 261.081,
    "s": 52.113,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43374,
    "c": 0.16922,
    "h": 294.4
  },
  "luminance": 0.0715
}

Semantic roles & 50–950 ramp

primary
#5A33A2
secondary
#A4BE73
accent
#DC4CA9
background
#F9F6FB
surface
#F1ECF7
border
#CBC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A33A2

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

Preview Lab → · Contrast checker → · Palette generator →

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