#5E348E#5E348E

#5E348E is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.4% C 0.144 H 302.1°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#5E348E
RGBrgb(94, 52, 142)
HSLhsl(268, 46%, 38%)
HSVhsv(268, 63%, 56%)
CMYKcmyk(33.8%, 63.4%, 0%, 44.3%)
CIE-LABlab(31.32, 37.65, -43.02)
CIE-LCHlch(31.32, 57.17, 311.19°)
OKLaboklab(42.41% 0.0765 -0.122)
OKLCHoklch(42.41% 0.144 302.1)
XYZxyz(10.7254, 6.7886, 26.3312)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E348E #648E34
analogous
#34378E #5E348E #8B348E
triadic
#5E348E #8E5E34 #348E5E
tetradic
#5E348E #8E3437 #648E34 #348E8B
square
#5E348E #8E3437 #648E34 #348E8B
split-complementary
#5E348E #8E8B34 #378E34
monochromatic
#231334 #402461 #5E348E #7C44BB #9B71CB

Accessibility & contrast

On white

8.91
#5E348E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5E348E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E348E
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E348E#FFFFFF#000000##FFFFFF
##5E348E1.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#18498C
Tritanopia (blue-blind)
#54475C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5e348e;
/* rgb */ color: rgb(94, 52, 142);
/* oklch */ color: oklch(42.4% 0.144 302.1);
Tailwind
colors: {
  custom: {
    50: '#8f6eb0',
    500: '#5e348e',
    950: '#000000',
  },
}
SCSS
$custom: #5e348e;
$custom-light: #8f6eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e348e",
  "rgb": {
    "r": 94,
    "g": 52,
    "b": 142
  },
  "hsl": {
    "h": 268,
    "s": 46.392,
    "l": 38.039
  },
  "oklch": {
    "l": 0.42414,
    "c": 0.14401,
    "h": 302.1
  },
  "luminance": 0.06789
}

Semantic roles & 50–950 ramp

primary
#5E348E
secondary
#91B36A
accent
#D65298
background
#F9F6FA
surface
#F1ECF5
border
#CBC7CF
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5E348E

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

Preview Lab → · Contrast checker → · Palette generator →

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