#5A368E#5A368E

#5A368E is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.3% C 0.140 H 299.2°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#5A368E
RGBrgb(90, 54, 142)
HSLhsl(265, 45%, 38%)
HSVhsv(265, 62%, 56%)
CMYKcmyk(36.6%, 62%, 0%, 44.3%)
CIE-LABlab(31.27, 35.55, -43.13)
CIE-LCHlch(31.27, 55.89, 309.49°)
OKLaboklab(42.27% 0.0683 -0.1225)
OKLCHoklch(42.27% 0.14 299.2)
XYZxyz(10.4169, 6.7649, 26.3429)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A368E #6A8E36
analogous
#363E8E #5A368E #86368E
triadic
#5A368E #8E5A36 #368E5A
tetradic
#5A368E #8E363E #6A8E36 #368E86
square
#5A368E #8E363E #6A8E36 #368E86
split-complementary
#5A368E #8E8636 #3E8E36
monochromatic
#221435 #3E2562 #5A368E #7648B9 #9774CA

Accessibility & contrast

On white

8.92
#5A368E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5A368E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A368E
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A368E#FFFFFF#000000##FFFFFF
##5A368E1.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A91
Deuteranopia (green-blind)
#15498C
Tritanopia (blue-blind)
#4E495C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5a368e;
/* rgb */ color: rgb(90, 54, 142);
/* oklch */ color: oklch(42.3% 0.140 299.2);
Tailwind
colors: {
  custom: {
    50: '#8c6fb0',
    500: '#5a368e',
    950: '#000000',
  },
}
SCSS
$custom: #5a368e;
$custom-light: #8c6fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a368e",
  "rgb": {
    "r": 90,
    "g": 54,
    "b": 142
  },
  "hsl": {
    "h": 264.545,
    "s": 44.898,
    "l": 38.431
  },
  "oklch": {
    "l": 0.42265,
    "c": 0.14025,
    "h": 299.2
  },
  "luminance": 0.06765
}

Semantic roles & 50–950 ramp

primary
#5A368E
secondary
#96B36D
accent
#D553A0
background
#F8F6FA
surface
#F0ECF5
border
#CBC7CF
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #5A368E

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

Preview Lab → · Contrast checker → · Palette generator →

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