#5A368B#5A368B

#5A368B is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.0% C 0.136 H 300.1°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#5A368B
RGBrgb(90, 54, 139)
HSLhsl(265, 44%, 38%)
HSVhsv(265, 61%, 55%)
CMYKcmyk(35.3%, 61.2%, 0%, 45.5%)
CIE-LABlab(31.06, 34.73, -41.62)
CIE-LCHlch(31.06, 54.20, 309.85°)
OKLaboklab(42.05% 0.0684 -0.118)
OKLCHoklch(42.05% 0.136 300.1)
XYZxyz(10.1947, 6.6760, 25.1726)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A368B #678B36
analogous
#363C8B #5A368B #84368B
triadic
#5A368B #8B5A36 #368B5A
tetradic
#5A368B #8B363C #678B36 #368B84
square
#5A368B #8B363C #678B36 #368B84
split-complementary
#5A368B #8B8436 #3C8B36
monochromatic
#211433 #3D255F #5A368B #7747B7 #9773C9

Accessibility & contrast

On white

8.99
#5A368B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A368B
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A368B#FFFFFF#000000##FFFFFF
##5A368B1.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05498E
Deuteranopia (green-blind)
#1A4889
Tritanopia (blue-blind)
#50485B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a368b;
/* rgb */ color: rgb(90, 54, 139);
/* oklch */ color: oklch(42.0% 0.136 300.1);
Tailwind
colors: {
  custom: {
    50: '#8c6fad',
    500: '#5a368b',
    950: '#000000',
  },
}
SCSS
$custom: #5a368b;
$custom-light: #8c6fad;
$custom-dark: #000000;
JSON
{
  "hex": "#5a368b",
  "rgb": {
    "r": 90,
    "g": 54,
    "b": 139
  },
  "hsl": {
    "h": 265.412,
    "s": 44.041,
    "l": 37.843
  },
  "oklch": {
    "l": 0.42047,
    "c": 0.13643,
    "h": 300.1
  },
  "luminance": 0.06676
}

Semantic roles & 50–950 ramp

primary
#5A368B
secondary
#94B16C
accent
#D4549E
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #5A368B

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

Preview Lab → · Contrast checker → · Palette generator →

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