#5E338A#5E338A

#5E338A is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.0% C 0.141 H 303.7°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#5E338A
RGBrgb(94, 51, 138)
HSLhsl(270, 46%, 37%)
HSVhsv(270, 63%, 54%)
CMYKcmyk(31.9%, 63%, 0%, 45.9%)
CIE-LABlab(30.84, 37.16, -41.33)
CIE-LCHlch(30.84, 55.58, 311.96°)
OKLaboklab(41.97% 0.078 -0.117)
OKLCHoklch(41.97% 0.141 303.7)
XYZxyz(10.3863, 6.5823, 24.7632)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E338A #5F8A33
analogous
#33348A #5E338A #8A338A
triadic
#5E338A #8A5E33 #338A5E
tetradic
#5E338A #8A3334 #5F8A33 #338A8A
square
#5E338A #8A3334 #5F8A33 #338A8A
split-complementary
#5E338A #8A8A33 #348A33
monochromatic
#211231 #40225D #5E338A #7C44B7 #9B6EC9

Accessibility & contrast

On white

9.07
#5E338A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5E338A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E338A
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E338A#FFFFFF#000000##FFFFFF
##5E338A1.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488D
Deuteranopia (green-blind)
#1C4888
Tritanopia (blue-blind)
#564559
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5e338a;
/* rgb */ color: rgb(94, 51, 138);
/* oklch */ color: oklch(42.0% 0.141 303.7);
Tailwind
colors: {
  custom: {
    50: '#8f6dad',
    500: '#5e338a',
    950: '#000000',
  },
}
SCSS
$custom: #5e338a;
$custom-light: #8f6dad;
$custom-dark: #000000;
JSON
{
  "hex": "#5e338a",
  "rgb": {
    "r": 94,
    "g": 51,
    "b": 138
  },
  "hsl": {
    "h": 269.655,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41973,
    "c": 0.14063,
    "h": 303.7
  },
  "luminance": 0.06582
}

Semantic roles & 50–950 ramp

primary
#5E338A
secondary
#8DB167
accent
#D65295
background
#F9F6FA
surface
#F1ECF4
border
#CBC7CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5E338A

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

Preview Lab → · Contrast checker → · Palette generator →

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