#5A349A#5A349A

#5A349A is a dark, vivid violet. Relative luminance 0.070; OKLCH L 42.9% C 0.158 H 296.2°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#5A349A
RGBrgb(90, 52, 154)
HSLhsl(262, 50%, 40%)
HSVhsv(262, 66%, 60%)
CMYKcmyk(41.6%, 66.2%, 0%, 39.6%)
CIE-LABlab(31.72, 39.99, -49.74)
CIE-LCHlch(31.72, 63.82, 308.80°)
OKLaboklab(42.87% 0.0698 -0.1419)
OKLCHoklch(42.87% 0.158 296.2)
XYZxyz(11.2757, 6.9625, 31.3154)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A349A #749A34
analogous
#34419A #5A349A #8D349A
triadic
#5A349A #9A5A34 #349A5A
tetradic
#5A349A #9A3441 #749A34 #349A8D
square
#5A349A #9A3441 #749A34 #349A8D
split-complementary
#5A349A #9A8D34 #419A34
monochromatic
#25153E #3F256C #5A349A #7649C2 #9977D1

Accessibility & contrast

On white

8.78
#5A349A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5A349A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A349A
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A349A#FFFFFF#000000##FFFFFF
##5A349A1.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a349a;
/* rgb */ color: rgb(90, 52, 154);
/* oklch */ color: oklch(42.9% 0.158 296.2);
Tailwind
colors: {
  custom: {
    50: '#8e6eb8',
    500: '#5a349a',
    950: '#000000',
  },
}
SCSS
$custom: #5a349a;
$custom-light: #8e6eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a349a",
  "rgb": {
    "r": 90,
    "g": 52,
    "b": 154
  },
  "hsl": {
    "h": 262.353,
    "s": 49.515,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42874,
    "c": 0.15814,
    "h": 296.2
  },
  "luminance": 0.06963
}

Semantic roles & 50–950 ramp

primary
#5A349A
secondary
#9EBA70
accent
#D94FA6
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5A349A

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

Preview Lab → · Contrast checker → · Palette generator →

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