#5A359B#5A359B

#5A359B is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.1% C 0.158 H 295.7°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#5A359B
RGBrgb(90, 53, 155)
HSLhsl(262, 49%, 41%)
HSVhsv(262, 66%, 61%)
CMYKcmyk(41.9%, 65.8%, 0%, 39.2%)
CIE-LABlab(32.00, 39.71, -49.89)
CIE-LCHlch(32.00, 63.76, 308.51°)
OKLaboklab(43.1% 0.0686 -0.1423)
OKLCHoklch(43.1% 0.158 295.7)
XYZxyz(11.4044, 7.0862, 31.7709)
Luminance0.0709 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A359B #769B35
analogous
#35439B #5A359B #8D359B
triadic
#5A359B #9B5A35 #359B5A
tetradic
#5A359B #9B3543 #769B35 #359B8D
square
#5A359B #9B3543 #769B35 #359B8D
split-complementary
#5A359B #9B8D35 #439B35
monochromatic
#251640 #40256D #5A359B #764CC2 #9979D1

Accessibility & contrast

On white

8.69
#5A359B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5A359B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A359B
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A359B#FFFFFF#000000##FFFFFF
##5A359B1.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9E
Deuteranopia (green-blind)
#004A99
Tritanopia (blue-blind)
#494D63
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5a359b;
/* rgb */ color: rgb(90, 53, 155);
/* oklch */ color: oklch(43.1% 0.158 295.7);
Tailwind
colors: {
  custom: {
    50: '#8e6eb9',
    500: '#5a359b',
    950: '#000000',
  },
}
SCSS
$custom: #5a359b;
$custom-light: #8e6eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a359b",
  "rgb": {
    "r": 90,
    "g": 53,
    "b": 155
  },
  "hsl": {
    "h": 261.765,
    "s": 49.038,
    "l": 40.784
  },
  "oklch": {
    "l": 0.431,
    "c": 0.158,
    "h": 295.7
  },
  "luminance": 0.07086
}

Semantic roles & 50–950 ramp

primary
#5A359B
secondary
#A0BA72
accent
#D94FA7
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A359B

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

Preview Lab → · Contrast checker → · Palette generator →

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