#5A358F#5A358F

#5A358F is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.2% C 0.143 H 299.1°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#5A358F
RGBrgb(90, 53, 143)
HSLhsl(265, 46%, 38%)
HSVhsv(265, 63%, 56%)
CMYKcmyk(37.1%, 62.9%, 0%, 43.9%)
CIE-LABlab(31.12, 36.40, -43.98)
CIE-LCHlch(31.12, 57.09, 309.61°)
OKLaboklab(42.18% 0.0695 -0.125)
OKLCHoklch(42.18% 0.143 299.1)
XYZxyz(10.4463, 6.7029, 26.7247)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A358F #6A8F35
analogous
#353D8F #5A358F #87358F
triadic
#5A358F #8F5A35 #358F5A
tetradic
#5A358F #8F353D #6A8F35 #358F87
square
#5A358F #8F353D #6A8F35 #358F87
split-complementary
#5A358F #8F8735 #3D8F35
monochromatic
#221436 #3E2462 #5A358F #7647BB #9773CB

Accessibility & contrast

On white

8.97
#5A358F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5A358F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A358F
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A358F#FFFFFF#000000##FFFFFF
##5A358F1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004992
Deuteranopia (green-blind)
#11488D
Tritanopia (blue-blind)
#4E485D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a358f;
/* rgb */ color: rgb(90, 53, 143);
/* oklch */ color: oklch(42.2% 0.143 299.1);
Tailwind
colors: {
  custom: {
    50: '#8d6eb0',
    500: '#5a358f',
    950: '#000000',
  },
}
SCSS
$custom: #5a358f;
$custom-light: #8d6eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a358f",
  "rgb": {
    "r": 90,
    "g": 53,
    "b": 143
  },
  "hsl": {
    "h": 264.667,
    "s": 45.918,
    "l": 38.431
  },
  "oklch": {
    "l": 0.42182,
    "c": 0.14301,
    "h": 299.1
  },
  "luminance": 0.06703
}

Semantic roles & 50–950 ramp

primary
#5A358F
secondary
#96B46C
accent
#D652A0
background
#F8F6FA
surface
#F0ECF5
border
#CBC7CF
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #5A358F

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

Preview Lab → · Contrast checker → · Palette generator →

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