#5A3299#5A3299

#5A3299 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.5% C 0.160 H 296.9°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#5A3299
RGBrgb(90, 50, 153)
HSLhsl(263, 51%, 40%)
HSVhsv(263, 67%, 60%)
CMYKcmyk(41.2%, 67.3%, 0%, 40%)
CIE-LABlab(31.24, 40.81, -49.91)
CIE-LCHlch(31.24, 64.47, 309.27°)
OKLaboklab(42.5% 0.0722 -0.1424)
OKLCHoklch(42.5% 0.16 296.9)
XYZxyz(11.1053, 6.7546, 30.8495)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3299 #719932
analogous
#323E99 #5A3299 #8E3299
triadic
#5A3299 #995A32 #32995A
tetradic
#5A3299 #99323E #719932 #32998E
square
#5A3299 #99323E #719932 #32998E
split-complementary
#5A3299 #998E32 #3E9932
monochromatic
#24143D #3F236B #5A3299 #7646C2 #9874D2

Accessibility & contrast

On white

8.93
#5A3299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5A3299 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3299
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3299#FFFFFF#000000##FFFFFF
##5A32991.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9C
Deuteranopia (green-blind)
#004897
Tritanopia (blue-blind)
#4A4A61
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a3299;
/* rgb */ color: rgb(90, 50, 153);
/* oklch */ color: oklch(42.5% 0.160 296.9);
Tailwind
colors: {
  custom: {
    50: '#8e6db8',
    500: '#5a3299',
    950: '#000000',
  },
}
SCSS
$custom: #5a3299;
$custom-light: #8e6db8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3299",
  "rgb": {
    "r": 90,
    "g": 50,
    "b": 153
  },
  "hsl": {
    "h": 263.301,
    "s": 50.739,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42504,
    "c": 0.15964,
    "h": 296.9
  },
  "luminance": 0.06755
}

Semantic roles & 50–950 ramp

primary
#5A3299
secondary
#9CBA6D
accent
#DA4EA4
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5A3299

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

Preview Lab → · Contrast checker → · Palette generator →

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