#5A3286#5A3286

#5A3286 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.1% C 0.136 H 302.8°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#5A3286
RGBrgb(90, 50, 134)
HSLhsl(269, 46%, 36%)
HSVhsv(269, 63%, 53%)
CMYKcmyk(32.8%, 62.7%, 0%, 47.5%)
CIE-LABlab(29.85, 35.69, -40.46)
CIE-LCHlch(29.85, 53.95, 311.42°)
OKLaboklab(41.06% 0.0738 -0.1146)
OKLCHoklch(41.06% 0.136 302.8)
XYZxyz(9.6591, 6.1761, 23.2329)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3286 #5E8632
analogous
#323486 #5A3286 #843286
triadic
#5A3286 #865A32 #32865A
tetradic
#5A3286 #863234 #5E8632 #328684
square
#5A3286 #863234 #5E8632 #328684
split-complementary
#5A3286 #868432 #348632
monochromatic
#1E112D #3C2159 #5A3286 #7843B3 #976BC8

Accessibility & contrast

On white

9.40
#5A3286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5A3286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3286
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3286#FFFFFF#000000##FFFFFF
##5A32861.009.402.249.40
#FFFFFF9.401.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014689
Deuteranopia (green-blind)
#1B4684
Tritanopia (blue-blind)
#514357
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5a3286;
/* rgb */ color: rgb(90, 50, 134);
/* oklch */ color: oklch(41.1% 0.136 302.8);
Tailwind
colors: {
  custom: {
    50: '#8c6caa',
    500: '#5a3286',
    950: '#000000',
  },
}
SCSS
$custom: #5a3286;
$custom-light: #8c6caa;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3286",
  "rgb": {
    "r": 90,
    "g": 50,
    "b": 134
  },
  "hsl": {
    "h": 268.571,
    "s": 45.652,
    "l": 36.078
  },
  "oklch": {
    "l": 0.41059,
    "c": 0.13629,
    "h": 302.8
  },
  "luminance": 0.06176
}

Semantic roles & 50–950 ramp

primary
#5A3286
secondary
#8CAF64
accent
#D55297
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #5A3286

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

Preview Lab → · Contrast checker → · Palette generator →

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