#5E338E#5E338E

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

Color values

HEX#5E338E
RGBrgb(94, 51, 142)
HSLhsl(268, 47%, 38%)
HSVhsv(268, 64%, 56%)
CMYKcmyk(33.8%, 64.1%, 0%, 44.3%)
CIE-LABlab(31.11, 38.21, -43.35)
CIE-LCHlch(31.11, 57.78, 311.39°)
OKLaboklab(42.26% 0.0778 -0.123)
OKLCHoklch(42.26% 0.146 302.3)
XYZxyz(10.6813, 6.7003, 26.3165)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E338E #638E33
analogous
#33358E #5E338E #8B338E
triadic
#5E338E #8E5E33 #338E5E
tetradic
#5E338E #8E3335 #638E33 #338E8B
square
#5E338E #8E3335 #638E33 #338E8B
split-complementary
#5E338E #8E8B33 #358E33
monochromatic
#221334 #402361 #5E338E #7C43BB #9B70CC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5E338E#FFFFFF#000000##FFFFFF
##5E338E1.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)
#004891
Deuteranopia (green-blind)
#16498C
Tritanopia (blue-blind)
#54465B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5e338e;
/* rgb */ color: rgb(94, 51, 142);
/* oklch */ color: oklch(42.3% 0.145 302.3);
Tailwind
colors: {
  custom: {
    50: '#8f6db0',
    500: '#5e338e',
    950: '#000000',
  },
}
SCSS
$custom: #5e338e;
$custom-light: #8f6db0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e338e",
  "rgb": {
    "r": 94,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 268.352,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.42264,
    "c": 0.1455,
    "h": 302.3
  },
  "luminance": 0.067
}

Semantic roles & 50–950 ramp

primary
#5E338E
secondary
#90B469
accent
#D75198
background
#F9F6FA
surface
#F1ECF5
border
#CBC7CF
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5E338E

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

Preview Lab → · Contrast checker → · Palette generator →

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