#5E368E#5E368E

#5E368E is a dark, vivid violet. Relative luminance 0.070; OKLCH L 42.7% C 0.141 H 301.6°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#5E368E
RGBrgb(94, 54, 142)
HSLhsl(267, 45%, 38%)
HSVhsv(267, 62%, 56%)
CMYKcmyk(33.8%, 62%, 0%, 44.3%)
CIE-LABlab(31.74, 36.52, -42.34)
CIE-LCHlch(31.74, 55.92, 310.78°)
OKLaboklab(42.72% 0.074 -0.12)
OKLCHoklch(42.72% 0.141 301.6)
XYZxyz(10.8166, 6.9710, 26.3616)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E368E #668E36
analogous
#363A8E #5E368E #8A368E
triadic
#5E368E #8E5E36 #368E5E
tetradic
#5E368E #8E363A #668E36 #368E8A
square
#5E368E #8E363A #668E36 #368E8A
split-complementary
#5E368E #8E8A36 #3A8E36
monochromatic
#231435 #412562 #5E368E #7B48B9 #9B74CA

Accessibility & contrast

On white

8.77
#5E368E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E368E
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E368E#FFFFFF#000000##FFFFFF
##5E368E1.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024A91
Deuteranopia (green-blind)
#1B4A8C
Tritanopia (blue-blind)
#54485C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5e368e;
/* rgb */ color: rgb(94, 54, 142);
/* oklch */ color: oklch(42.7% 0.141 301.6);
Tailwind
colors: {
  custom: {
    50: '#8f6fb0',
    500: '#5e368e',
    950: '#000000',
  },
}
SCSS
$custom: #5e368e;
$custom-light: #8f6fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e368e",
  "rgb": {
    "r": 94,
    "g": 54,
    "b": 142
  },
  "hsl": {
    "h": 267.273,
    "s": 44.898,
    "l": 38.431
  },
  "oklch": {
    "l": 0.42719,
    "c": 0.14098,
    "h": 301.6
  },
  "luminance": 0.06971
}

Semantic roles & 50–950 ramp

primary
#5E368E
secondary
#93B36D
accent
#D5539A
background
#F9F6FA
surface
#F1ECF5
border
#CBC7CF
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5E368E

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

Preview Lab → · Contrast checker → · Palette generator →

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