#5A339A#5A339A

#5A339A is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.7% C 0.160 H 296.4°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#5A339A
RGBrgb(90, 51, 154)
HSLhsl(263, 50%, 40%)
HSVhsv(263, 67%, 60%)
CMYKcmyk(41.6%, 66.9%, 0%, 39.6%)
CIE-LABlab(31.52, 40.54, -50.07)
CIE-LCHlch(31.52, 64.42, 309.00°)
OKLaboklab(42.73% 0.0709 -0.1429)
OKLCHoklch(42.73% 0.16 296.4)
XYZxyz(11.2315, 6.8742, 31.3007)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A339A #739A33
analogous
#33409A #5A339A #8D339A
triadic
#5A339A #9A5A33 #339A5A
tetradic
#5A339A #9A3340 #739A33 #339A8D
square
#5A339A #9A3340 #739A33 #339A8D
split-complementary
#5A339A #9A8D33 #409A33
monochromatic
#24153E #3F246C #5A339A #7648C2 #9976D2

Accessibility & contrast

On white

8.84
#5A339A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5A339A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A339A
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A339A#FFFFFF#000000##FFFFFF
##5A339A1.008.842.378.84
#FFFFFF8.841.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9D
Deuteranopia (green-blind)
#004998
Tritanopia (blue-blind)
#4A4B62
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5a339a;
/* rgb */ color: rgb(90, 51, 154);
/* oklch */ color: oklch(42.7% 0.160 296.4);
Tailwind
colors: {
  custom: {
    50: '#8e6db8',
    500: '#5a339a',
    950: '#000000',
  },
}
SCSS
$custom: #5a339a;
$custom-light: #8e6db8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a339a",
  "rgb": {
    "r": 90,
    "g": 51,
    "b": 154
  },
  "hsl": {
    "h": 262.718,
    "s": 50.244,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42728,
    "c": 0.15951,
    "h": 296.4
  },
  "luminance": 0.06874
}

Semantic roles & 50–950 ramp

primary
#5A339A
secondary
#9EBA6F
accent
#DA4EA5
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5A339A

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

Preview Lab → · Contrast checker → · Palette generator →

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