#5A3E87#5A3E87

#5A3E87 is a dark, moderate violet. Relative luminance 0.074; OKLCH L 43.1% C 0.118 H 299.1°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#5A3E87
RGBrgb(90, 62, 135)
HSLhsl(263, 37%, 39%)
HSVhsv(263, 54%, 53%)
CMYKcmyk(33.3%, 54.1%, 0%, 47.1%)
CIE-LABlab(32.63, 28.85, -36.62)
CIE-LCHlch(32.63, 46.62, 308.23°)
OKLaboklab(43.12% 0.0575 -0.1034)
OKLCHoklch(43.12% 0.118 299.1)
XYZxyz(10.3112, 7.3681, 23.7959)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3E87 #6B873E
analogous
#3E4687 #5A3E87 #7E3E87
triadic
#5A3E87 #875A3E #3E875A
tetradic
#5A3E87 #873E46 #6B873E #3E877E
square
#5A3E87 #873E46 #6B873E #3E877E
split-complementary
#5A3E87 #877E3E #46873E
monochromatic
#221733 #3E2B5D #5A3E87 #7652B0 #977CC3

Accessibility & contrast

On white

8.49
#5A3E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5A3E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3E87
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3E87#FFFFFF#000000##FFFFFF
##5A3E871.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234D8A
Deuteranopia (green-blind)
#2B4C85
Tritanopia (blue-blind)
#514C5C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5a3e87;
/* rgb */ color: rgb(90, 62, 135);
/* oklch */ color: oklch(43.1% 0.118 299.1);
Tailwind
colors: {
  custom: {
    50: '#8b74aa',
    500: '#5a3e87',
    950: '#000000',
  },
}
SCSS
$custom: #5a3e87;
$custom-light: #8b74aa;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3e87",
  "rgb": {
    "r": 90,
    "g": 62,
    "b": 135
  },
  "hsl": {
    "h": 263.014,
    "s": 37.056,
    "l": 38.627
  },
  "oklch": {
    "l": 0.43121,
    "c": 0.1183,
    "h": 299.1
  },
  "luminance": 0.07368
}

Semantic roles & 50–950 ramp

primary
#5A3E87
secondary
#97AD74
accent
#CD5BA1
background
#F8F7FA
surface
#F0EDF4
border
#CBC8CE
text
#0C0810
muted
#7D7B7F

Preview Lab

Preview with #5A3E87

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

Preview Lab → · Contrast checker → · Palette generator →

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