#5E339F#5E339F

#5E339F is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.6% C 0.166 H 297.3°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#5E339F
RGBrgb(94, 51, 159)
HSLhsl(264, 51%, 41%)
HSVhsv(264, 68%, 62%)
CMYKcmyk(40.9%, 67.9%, 0%, 37.6%)
CIE-LABlab(32.37, 42.73, -51.70)
CIE-LCHlch(32.37, 67.07, 309.58°)
OKLaboklab(43.57% 0.0761 -0.1475)
OKLCHoklch(43.57% 0.166 297.3)
XYZxyz(12.0563, 7.2503, 33.5584)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E339F #749F33
analogous
#333E9F #5E339F #94339F
triadic
#5E339F #9F5E33 #339F5E
tetradic
#5E339F #9F333E #749F33 #339F94
square
#5E339F #9F333E #749F33 #339F94
split-complementary
#5E339F #9F9433 #3E9F33
monochromatic
#271542 #432471 #5E339F #7B4AC5 #9D79D4

Accessibility & contrast

On white

8.57
#5E339F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5E339F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E339F
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E339F#FFFFFF#000000##FFFFFF
##5E339F1.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA2
Deuteranopia (green-blind)
#004B9D
Tritanopia (blue-blind)
#4E4C64
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5e339f;
/* rgb */ color: rgb(94, 51, 159);
/* oklch */ color: oklch(43.6% 0.166 297.3);
Tailwind
colors: {
  custom: {
    50: '#916ebc',
    500: '#5e339f',
    950: '#000000',
  },
}
SCSS
$custom: #5e339f;
$custom-light: #916ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e339f",
  "rgb": {
    "r": 94,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 263.889,
    "s": 51.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43567,
    "c": 0.16598,
    "h": 297.3
  },
  "luminance": 0.07251
}

Semantic roles & 50–950 ramp

primary
#5E339F
secondary
#9FBC71
accent
#DB4DA2
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5E339F

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

Preview Lab → · Contrast checker → · Palette generator →

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