#5E348F#5E348F

#5E348F is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.5% C 0.145 H 301.8°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#5E348F
RGBrgb(94, 52, 143)
HSLhsl(268, 47%, 38%)
HSVhsv(268, 64%, 56%)
CMYKcmyk(34.3%, 63.6%, 0%, 43.9%)
CIE-LABlab(31.39, 37.91, -43.52)
CIE-LCHlch(31.39, 57.72, 311.06°)
OKLaboklab(42.49% 0.0765 -0.1235)
OKLCHoklch(42.49% 0.145 301.8)
XYZxyz(10.8008, 6.8188, 26.7284)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E348F #658F34
analogous
#34378F #5E348F #8B348F
triadic
#5E348F #8F5E34 #348F5E
tetradic
#5E348F #8F3437 #658F34 #348F8B
square
#5E348F #8F3437 #658F34 #348F8B
split-complementary
#5E348F #8F8B34 #378F34
monochromatic
#231335 #402462 #5E348F #7C45BB #9B72CC

Accessibility & contrast

On white

8.88
#5E348F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E348F
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E348F#FFFFFF#000000##FFFFFF
##5E348F1.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004992
Deuteranopia (green-blind)
#16498D
Tritanopia (blue-blind)
#54475C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5e348f;
/* rgb */ color: rgb(94, 52, 143);
/* oklch */ color: oklch(42.5% 0.145 301.8);
Tailwind
colors: {
  custom: {
    50: '#8f6eb0',
    500: '#5e348f',
    950: '#000000',
  },
}
SCSS
$custom: #5e348f;
$custom-light: #8f6eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e348f",
  "rgb": {
    "r": 94,
    "g": 52,
    "b": 143
  },
  "hsl": {
    "h": 267.692,
    "s": 46.667,
    "l": 38.235
  },
  "oklch": {
    "l": 0.42487,
    "c": 0.14523,
    "h": 301.8
  },
  "luminance": 0.06819
}

Semantic roles & 50–950 ramp

primary
#5E348F
secondary
#92B46B
accent
#D65199
background
#F9F6FA
surface
#F1ECF5
border
#CBC7CF
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5E348F

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

Preview Lab → · Contrast checker → · Palette generator →

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