#5A3196#5A3196

#5A3196 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.1% C 0.157 H 297.9°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#5A3196
RGBrgb(90, 49, 150)
HSLhsl(264, 51%, 39%)
HSVhsv(264, 67%, 59%)
CMYKcmyk(40%, 67.3%, 0%, 41.2%)
CIE-LABlab(30.81, 40.54, -48.77)
CIE-LCHlch(30.81, 63.42, 309.73°)
OKLaboklab(42.12% 0.0737 -0.139)
OKLCHoklch(42.12% 0.157 297.9)
XYZxyz(10.8184, 6.5721, 29.5468)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3196 #6D9631
analogous
#313B96 #5A3196 #8D3196
triadic
#5A3196 #965A31 #31965A
tetradic
#5A3196 #96313B #6D9631 #31968D
square
#5A3196 #96313B #6D9631 #31968D
split-complementary
#5A3196 #968D31 #3B9631
monochromatic
#23133A #3E2268 #5A3196 #7643C1 #9871D1

Accessibility & contrast

On white

9.07
#5A3196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5A3196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3196
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3196#FFFFFF#000000##FFFFFF
##5A31961.009.072.319.07
#FFFFFF9.071.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004999
Deuteranopia (green-blind)
#004794
Tritanopia (blue-blind)
#4C485F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a3196;
/* rgb */ color: rgb(90, 49, 150);
/* oklch */ color: oklch(42.1% 0.157 297.9);
Tailwind
colors: {
  custom: {
    50: '#8e6cb6',
    500: '#5a3196',
    950: '#000000',
  },
}
SCSS
$custom: #5a3196;
$custom-light: #8e6cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3196",
  "rgb": {
    "r": 90,
    "g": 49,
    "b": 150
  },
  "hsl": {
    "h": 264.356,
    "s": 50.754,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42123,
    "c": 0.15736,
    "h": 297.9
  },
  "luminance": 0.06572
}

Semantic roles & 50–950 ramp

primary
#5A3196
secondary
#99B86A
accent
#DA4EA1
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5A3196

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

Preview Lab → · Contrast checker → · Palette generator →

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