#5A349B#5A349B

#5A349B is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.0% C 0.159 H 295.9°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#5A349B
RGBrgb(90, 52, 155)
HSLhsl(262, 50%, 41%)
HSVhsv(262, 66%, 61%)
CMYKcmyk(41.9%, 66.5%, 0%, 39.2%)
CIE-LABlab(31.80, 40.26, -50.22)
CIE-LCHlch(31.80, 64.37, 308.72°)
OKLaboklab(42.95% 0.0697 -0.1433)
OKLCHoklch(42.95% 0.159 295.9)
XYZxyz(11.3593, 6.9960, 31.7559)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A349B #759B34
analogous
#34419B #5A349B #8D349B
triadic
#5A349B #9B5A34 #349B5A
tetradic
#5A349B #9B3441 #759B34 #349B8D
square
#5A349B #9B3441 #759B34 #349B8D
split-complementary
#5A349B #9B8D34 #419B34
monochromatic
#25153F #3F256D #5A349B #764AC2 #9978D2

Accessibility & contrast

On white

8.75
#5A349B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5A349B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A349B
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A349B#FFFFFF#000000##FFFFFF
##5A349B1.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9E
Deuteranopia (green-blind)
#004999
Tritanopia (blue-blind)
#494C63
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5a349b;
/* rgb */ color: rgb(90, 52, 155);
/* oklch */ color: oklch(43.0% 0.159 295.9);
Tailwind
colors: {
  custom: {
    50: '#8e6eb9',
    500: '#5a349b',
    950: '#000000',
  },
}
SCSS
$custom: #5a349b;
$custom-light: #8e6eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a349b",
  "rgb": {
    "r": 90,
    "g": 52,
    "b": 155
  },
  "hsl": {
    "h": 262.136,
    "s": 49.758,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42953,
    "c": 0.15937,
    "h": 295.9
  },
  "luminance": 0.06996
}

Semantic roles & 50–950 ramp

primary
#5A349B
secondary
#9FBA71
accent
#D94FA6
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A349B

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

Preview Lab → · Contrast checker → · Palette generator →

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