#5E339A#5E339A

#5E339A is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.2% C 0.160 H 298.6°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#5E339A
RGBrgb(94, 51, 154)
HSLhsl(265, 50%, 40%)
HSVhsv(265, 67%, 60%)
CMYKcmyk(39%, 66.9%, 0%, 39.6%)
CIE-LABlab(31.99, 41.39, -49.28)
CIE-LCHlch(31.99, 64.36, 310.02°)
OKLaboklab(43.17% 0.0767 -0.1404)
OKLCHoklch(43.17% 0.16 298.6)
XYZxyz(11.6312, 7.0803, 31.3194)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E339A #6F9A33
analogous
#333B9A #5E339A #92339A
triadic
#5E339A #9A5E33 #339A5E
tetradic
#5E339A #9A333B #6F9A33 #339A92
square
#5E339A #9A333B #6F9A33 #339A92
split-complementary
#5E339A #9A9233 #3B9A33
monochromatic
#26153E #42246C #5E339A #7B48C2 #9C76D2

Accessibility & contrast

On white

8.69
#5E339A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5E339A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E339A
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E339A#FFFFFF#000000##FFFFFF
##5E339A1.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9D
Deuteranopia (green-blind)
#004A98
Tritanopia (blue-blind)
#504B62
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5e339a;
/* rgb */ color: rgb(94, 51, 154);
/* oklch */ color: oklch(43.2% 0.160 298.6);
Tailwind
colors: {
  custom: {
    50: '#906db8',
    500: '#5e339a',
    950: '#000000',
  },
}
SCSS
$custom: #5e339a;
$custom-light: #906db8;
$custom-dark: #000000;
JSON
{
  "hex": "#5e339a",
  "rgb": {
    "r": 94,
    "g": 51,
    "b": 154
  },
  "hsl": {
    "h": 265.049,
    "s": 50.244,
    "l": 40.196
  },
  "oklch": {
    "l": 0.43173,
    "c": 0.16,
    "h": 298.6
  },
  "luminance": 0.0708
}

Semantic roles & 50–950 ramp

primary
#5E339A
secondary
#9BBA6F
accent
#DA4E9F
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5E339A

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

Preview Lab → · Contrast checker → · Palette generator →

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