#5A378E#5A378E

#5A378E is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.4% C 0.139 H 298.9°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#5A378E
RGBrgb(90, 55, 142)
HSLhsl(264, 44%, 39%)
HSVhsv(264, 61%, 56%)
CMYKcmyk(36.6%, 61.3%, 0%, 44.3%)
CIE-LABlab(31.48, 34.97, -42.78)
CIE-LCHlch(31.48, 55.25, 309.26°)
OKLaboklab(42.42% 0.0671 -0.1214)
OKLCHoklch(42.42% 0.139 298.9)
XYZxyz(10.4639, 6.8589, 26.3586)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A378E #6B8E37
analogous
#373F8E #5A378E #85378E
triadic
#5A378E #8E5A37 #378E5A
tetradic
#5A378E #8E373F #6B8E37 #378E85
square
#5A378E #8E373F #6B8E37 #378E85
split-complementary
#5A378E #8E8537 #3F8E37
monochromatic
#221536 #3E2662 #5A378E #7649B9 #9776CA

Accessibility & contrast

On white

8.85
#5A378E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5A378E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A378E
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A378E#FFFFFF#000000##FFFFFF
##5A378E1.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014A91
Deuteranopia (green-blind)
#17498C
Tritanopia (blue-blind)
#4E495D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5a378e;
/* rgb */ color: rgb(90, 55, 142);
/* oklch */ color: oklch(42.4% 0.139 298.9);
Tailwind
colors: {
  custom: {
    50: '#8c6fb0',
    500: '#5a378e',
    950: '#000000',
  },
}
SCSS
$custom: #5a378e;
$custom-light: #8c6fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a378e",
  "rgb": {
    "r": 90,
    "g": 55,
    "b": 142
  },
  "hsl": {
    "h": 264.138,
    "s": 44.162,
    "l": 38.627
  },
  "oklch": {
    "l": 0.42424,
    "c": 0.13873,
    "h": 298.9
  },
  "luminance": 0.06859
}

Semantic roles & 50–950 ramp

primary
#5A378E
secondary
#97B36E
accent
#D454A0
background
#F8F6FA
surface
#F0ECF5
border
#CBC7CF
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #5A378E

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

Preview Lab → · Contrast checker → · Palette generator →

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