#5A359A#5A359A

#5A359A is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.0% C 0.157 H 296.0°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#5A359A
RGBrgb(90, 53, 154)
HSLhsl(262, 49%, 41%)
HSVhsv(262, 66%, 60%)
CMYKcmyk(41.6%, 65.6%, 0%, 39.6%)
CIE-LABlab(31.93, 39.43, -49.41)
CIE-LCHlch(31.93, 63.21, 308.59°)
OKLaboklab(43.02% 0.0687 -0.1409)
OKLCHoklch(43.02% 0.157 296)
XYZxyz(11.3208, 7.0527, 31.3304)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A359A #759A35
analogous
#35439A #5A359A #8C359A
triadic
#5A359A #9A5A35 #359A5A
tetradic
#5A359A #9A3543 #759A35 #359A8C
square
#5A359A #9A3543 #759A35 #359A8C
split-complementary
#5A359A #9A8C35 #439A35
monochromatic
#25163F #3F256C #5A359A #764BC1 #9979D1

Accessibility & contrast

On white

8.71
#5A359A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5A359A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A359A
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A359A#FFFFFF#000000##FFFFFF
##5A359A1.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a359a;
/* rgb */ color: rgb(90, 53, 154);
/* oklch */ color: oklch(43.0% 0.157 296.0);
Tailwind
colors: {
  custom: {
    50: '#8e6eb8',
    500: '#5a359a',
    950: '#000000',
  },
}
SCSS
$custom: #5a359a;
$custom-light: #8e6eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a359a",
  "rgb": {
    "r": 90,
    "g": 53,
    "b": 154
  },
  "hsl": {
    "h": 261.98,
    "s": 48.792,
    "l": 40.588
  },
  "oklch": {
    "l": 0.43022,
    "c": 0.15677,
    "h": 296
  },
  "luminance": 0.07053
}

Semantic roles & 50–950 ramp

primary
#5A359A
secondary
#9FB971
accent
#D84FA6
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5A359A

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

Preview Lab → · Contrast checker → · Palette generator →

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