#5E368D#5E368D

#5E368D is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.6% C 0.140 H 302.0°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#5E368D
RGBrgb(94, 54, 141)
HSLhsl(268, 45%, 38%)
HSVhsv(268, 62%, 55%)
CMYKcmyk(33.3%, 61.7%, 0%, 44.7%)
CIE-LABlab(31.67, 36.26, -41.84)
CIE-LCHlch(31.67, 55.36, 310.91°)
OKLaboklab(42.65% 0.074 -0.1185)
OKLCHoklch(42.65% 0.14 302)
XYZxyz(10.7419, 6.9411, 25.9680)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E368D #658D36
analogous
#363A8D #5E368D #89368D
triadic
#5E368D #8D5E36 #368D5E
tetradic
#5E368D #8D363A #658D36 #368D89
square
#5E368D #8D363A #658D36 #368D89
split-complementary
#5E368D #8D8936 #3A8D36
monochromatic
#231434 #402561 #5E368D #7C47B9 #9B74CA

Accessibility & contrast

On white

8.79
#5E368D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5E368D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E368D
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E368D#FFFFFF#000000##FFFFFF
##5E368D1.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044A90
Deuteranopia (green-blind)
#1D4A8B
Tritanopia (blue-blind)
#55485C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5e368d;
/* rgb */ color: rgb(94, 54, 141);
/* oklch */ color: oklch(42.6% 0.140 302.0);
Tailwind
colors: {
  custom: {
    50: '#8f6faf',
    500: '#5e368d',
    950: '#000000',
  },
}
SCSS
$custom: #5e368d;
$custom-light: #8f6faf;
$custom-dark: #000000;
JSON
{
  "hex": "#5e368d",
  "rgb": {
    "r": 94,
    "g": 54,
    "b": 141
  },
  "hsl": {
    "h": 267.586,
    "s": 44.615,
    "l": 38.235
  },
  "oklch": {
    "l": 0.42647,
    "c": 0.13974,
    "h": 302
  },
  "luminance": 0.06941
}

Semantic roles & 50–950 ramp

primary
#5E368D
secondary
#92B26D
accent
#D45399
background
#F9F6FA
surface
#F1ECF4
border
#CBC7CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5E368D

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

Preview Lab → · Contrast checker → · Palette generator →

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