#5A358B#5A358B

#5A358B is a dark, vivid violet. Relative luminance 0.066; OKLCH L 41.9% C 0.138 H 300.4°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#5A358B
RGBrgb(90, 53, 139)
HSLhsl(266, 45%, 38%)
HSVhsv(266, 62%, 55%)
CMYKcmyk(35.3%, 61.9%, 0%, 45.5%)
CIE-LABlab(30.84, 35.31, -41.97)
CIE-LCHlch(30.84, 54.84, 310.08°)
OKLaboklab(41.89% 0.0697 -0.119)
OKLCHoklch(41.89% 0.138 300.4)
XYZxyz(10.1486, 6.5839, 25.1572)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A358B #668B35
analogous
#353B8B #5A358B #85358B
triadic
#5A358B #8B5A35 #358B5A
tetradic
#5A358B #8B353B #668B35 #358B85
square
#5A358B #8B353B #668B35 #358B85
split-complementary
#5A358B #8B8535 #3B8B35
monochromatic
#211332 #3D245F #5A358B #7746B7 #9771C9

Accessibility & contrast

On white

9.06
#5A358B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5A358B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A358B
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A358B#FFFFFF#000000##FFFFFF
##5A358B1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488E
Deuteranopia (green-blind)
#184889
Tritanopia (blue-blind)
#50475B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a358b;
/* rgb */ color: rgb(90, 53, 139);
/* oklch */ color: oklch(41.9% 0.138 300.4);
Tailwind
colors: {
  custom: {
    50: '#8c6ead',
    500: '#5a358b',
    950: '#000000',
  },
}
SCSS
$custom: #5a358b;
$custom-light: #8c6ead;
$custom-dark: #000000;
JSON
{
  "hex": "#5a358b",
  "rgb": {
    "r": 90,
    "g": 53,
    "b": 139
  },
  "hsl": {
    "h": 265.814,
    "s": 44.792,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41888,
    "c": 0.13796,
    "h": 300.4
  },
  "luminance": 0.06584
}

Semantic roles & 50–950 ramp

primary
#5A358B
secondary
#93B16A
accent
#D4539D
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #5A358B

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

Preview Lab → · Contrast checker → · Palette generator →

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