#5E348C#5E348C

#5E348C is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.3% C 0.142 H 302.8°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#5E348C
RGBrgb(94, 52, 140)
HSLhsl(269, 46%, 38%)
HSVhsv(269, 63%, 55%)
CMYKcmyk(32.9%, 62.9%, 0%, 45.1%)
CIE-LABlab(31.18, 37.12, -42.01)
CIE-LCHlch(31.18, 56.06, 311.47°)
OKLaboklab(42.27% 0.0766 -0.119)
OKLCHoklch(42.27% 0.142 302.8)
XYZxyz(10.5766, 6.7291, 25.5475)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E348C #628C34
analogous
#34368C #5E348C #8A348C
triadic
#5E348C #8C5E34 #348C5E
tetradic
#5E348C #8C3436 #628C34 #348C8A
square
#5E348C #8C3436 #628C34 #348C8A
split-complementary
#5E348C #8C8A34 #368C34
monochromatic
#221333 #40235F #5E348C #7C45B9 #9B70CA

Accessibility & contrast

On white

8.95
#5E348C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5E348C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E348C
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E348C#FFFFFF#000000##FFFFFF
##5E348C1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00498F
Deuteranopia (green-blind)
#1B498A
Tritanopia (blue-blind)
#55465B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5e348c;
/* rgb */ color: rgb(94, 52, 140);
/* oklch */ color: oklch(42.3% 0.142 302.8);
Tailwind
colors: {
  custom: {
    50: '#8f6eae',
    500: '#5e348c',
    950: '#000000',
  },
}
SCSS
$custom: #5e348c;
$custom-light: #8f6eae;
$custom-dark: #000000;
JSON
{
  "hex": "#5e348c",
  "rgb": {
    "r": 94,
    "g": 52,
    "b": 140
  },
  "hsl": {
    "h": 268.636,
    "s": 45.833,
    "l": 37.647
  },
  "oklch": {
    "l": 0.42269,
    "c": 0.14156,
    "h": 302.8
  },
  "luminance": 0.06729
}

Semantic roles & 50–950 ramp

primary
#5E348C
secondary
#90B26A
accent
#D55297
background
#F9F6FA
surface
#F1ECF4
border
#CBC7CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5E348C

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

Preview Lab → · Contrast checker → · Palette generator →

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