#5A3296#5A3296

#5A3296 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.3% C 0.156 H 297.7°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#5A3296
RGBrgb(90, 50, 150)
HSLhsl(264, 50%, 39%)
HSVhsv(264, 67%, 59%)
CMYKcmyk(40%, 66.7%, 0%, 41.2%)
CIE-LABlab(31.01, 39.99, -48.45)
CIE-LCHlch(31.01, 62.82, 309.54°)
OKLaboklab(42.27% 0.0725 -0.1381)
OKLCHoklch(42.27% 0.156 297.7)
XYZxyz(10.8607, 6.6567, 29.5609)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3296 #6E9632
analogous
#323C96 #5A3296 #8C3296
triadic
#5A3296 #965A32 #32965A
tetradic
#5A3296 #96323C #6E9632 #32968C
square
#5A3296 #96323C #6E9632 #32968C
split-complementary
#5A3296 #968C32 #3C9632
monochromatic
#23133A #3E2368 #5A3296 #7644C1 #9872D0

Accessibility & contrast

On white

9.01
#5A3296 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5A3296 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3296
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3296#FFFFFF#000000##FFFFFF
##5A32961.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a3296;
/* rgb */ color: rgb(90, 50, 150);
/* oklch */ color: oklch(42.3% 0.156 297.7);
Tailwind
colors: {
  custom: {
    50: '#8e6cb6',
    500: '#5a3296',
    950: '#000000',
  },
}
SCSS
$custom: #5a3296;
$custom-light: #8e6cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3296",
  "rgb": {
    "r": 90,
    "g": 50,
    "b": 150
  },
  "hsl": {
    "h": 264,
    "s": 50,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42267,
    "c": 0.15599,
    "h": 297.7
  },
  "luminance": 0.06657
}

Semantic roles & 50–950 ramp

primary
#5A3296
secondary
#9AB86C
accent
#DA4EA2
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5A3296

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

Preview Lab → · Contrast checker → · Palette generator →

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