#5A33A3#5A33A3

#5A33A3 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.5% C 0.170 H 294.1°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#5A33A3
RGBrgb(90, 51, 163)
HSLhsl(261, 52%, 42%)
HSVhsv(261, 69%, 64%)
CMYKcmyk(44.8%, 68.7%, 0%, 36.1%)
CIE-LABlab(32.23, 43.03, -54.37)
CIE-LCHlch(32.23, 69.34, 308.36°)
OKLaboklab(43.46% 0.0697 -0.1555)
OKLCHoklch(43.46% 0.17 294.1)
XYZxyz(12.0093, 7.1853, 35.3974)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A33A3 #7CA333
analogous
#3344A3 #5A33A3 #9233A3
triadic
#5A33A3 #A35A33 #33A35A
tetradic
#5A33A3 #A33344 #7CA333 #33A392
square
#5A33A3 #A33344 #7CA333 #33A392
split-complementary
#5A33A3 #A39233 #44A333
monochromatic
#271646 #402474 #5A33A3 #774CC7 #9A7BD6

Accessibility & contrast

On white

8.62
#5A33A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5A33A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A33A3
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A33A3#FFFFFF#000000##FFFFFF
##5A33A31.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA6
Deuteranopia (green-blind)
#004AA1
Tritanopia (blue-blind)
#454E67
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5a33a3;
/* rgb */ color: rgb(90, 51, 163);
/* oklch */ color: oklch(43.5% 0.170 294.1);
Tailwind
colors: {
  custom: {
    50: '#8f6dbf',
    500: '#5a33a3',
    950: '#000000',
  },
}
SCSS
$custom: #5a33a3;
$custom-light: #8f6dbf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a33a3",
  "rgb": {
    "r": 90,
    "g": 51,
    "b": 163
  },
  "hsl": {
    "h": 260.893,
    "s": 52.336,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43457,
    "c": 0.17043,
    "h": 294.1
  },
  "luminance": 0.07186
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A33A3

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

Preview Lab → · Contrast checker → · Palette generator →

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