#5E348B#5E348B

#5E348B is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.2% C 0.140 H 303.1°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#5E348B
RGBrgb(94, 52, 139)
HSLhsl(269, 46%, 37%)
HSVhsv(269, 63%, 55%)
CMYKcmyk(32.4%, 62.6%, 0%, 45.5%)
CIE-LABlab(31.11, 36.86, -41.50)
CIE-LCHlch(31.11, 55.51, 311.61°)
OKLaboklab(42.2% 0.0766 -0.1175)
OKLCHoklch(42.2% 0.14 303.1)
XYZxyz(10.5032, 6.6998, 25.1609)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E348B #618B34
analogous
#34358B #5E348B #8A348B
triadic
#5E348B #8B5E34 #348B5E
tetradic
#5E348B #8B3435 #618B34 #348B8A
square
#5E348B #8B3435 #618B34 #348B8A
split-complementary
#5E348B #8B8A34 #358B34
monochromatic
#221332 #40235E #5E348B #7C45B8 #9B70C9

Accessibility & contrast

On white

8.97
#5E348B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E348B
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E348B#FFFFFF#000000##FFFFFF
##5E348B1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01488E
Deuteranopia (green-blind)
#1C4989
Tritanopia (blue-blind)
#55465A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5e348b;
/* rgb */ color: rgb(94, 52, 139);
/* oklch */ color: oklch(42.2% 0.140 303.1);
Tailwind
colors: {
  custom: {
    50: '#8f6ead',
    500: '#5e348b',
    950: '#000000',
  },
}
SCSS
$custom: #5e348b;
$custom-light: #8f6ead;
$custom-dark: #000000;
JSON
{
  "hex": "#5e348b",
  "rgb": {
    "r": 94,
    "g": 52,
    "b": 139
  },
  "hsl": {
    "h": 268.966,
    "s": 45.55,
    "l": 37.451
  },
  "oklch": {
    "l": 0.42197,
    "c": 0.14033,
    "h": 303.1
  },
  "luminance": 0.067
}

Semantic roles & 50–950 ramp

primary
#5E348B
secondary
#8FB269
accent
#D55396
background
#F9F6FA
surface
#F1ECF4
border
#CBC7CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5E348B

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

Preview Lab → · Contrast checker → · Palette generator →

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