#5E337E#5E337E

#5E337E is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.1% C 0.126 H 308.3°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#5E337E
RGBrgb(94, 51, 126)
HSLhsl(274, 42%, 35%)
HSVhsv(274, 60%, 49%)
CMYKcmyk(25.4%, 59.5%, 0%, 50.6%)
CIE-LABlab(30.04, 34.10, -35.13)
CIE-LCHlch(30.04, 48.96, 314.15°)
OKLaboklab(41.14% 0.0781 -0.0988)
OKLCHoklch(41.14% 0.126 308.3)
XYZxyz(9.5651, 6.2538, 20.4378)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E337E #537E33
analogous
#39337E #5E337E #7E3379
triadic
#5E337E #7E5E33 #337E5E
tetradic
#5E337E #7E3933 #537E33 #33797E
square
#5E337E #7E3933 #537E33 #33797E
split-complementary
#5E337E #797E33 #337E39
monochromatic
#1D1027 #3D2152 #5E337E #7F45AA #9C69C2

Accessibility & contrast

On white

9.33
#5E337E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5E337E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E337E
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E337E#FFFFFF#000000##FFFFFF
##5E337E1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184580
Deuteranopia (green-blind)
#29477C
Tritanopia (blue-blind)
#594153
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5e337e;
/* rgb */ color: rgb(94, 51, 126);
/* oklch */ color: oklch(41.1% 0.126 308.3);
Tailwind
colors: {
  custom: {
    50: '#8e6da4',
    500: '#5e337e',
    950: '#000000',
  },
}
SCSS
$custom: #5e337e;
$custom-light: #8e6da4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e337e",
  "rgb": {
    "r": 94,
    "g": 51,
    "b": 126
  },
  "hsl": {
    "h": 274.4,
    "s": 42.373,
    "l": 34.706
  },
  "oklch": {
    "l": 0.41141,
    "c": 0.12596,
    "h": 308.3
  },
  "luminance": 0.06254
}

Semantic roles & 50–950 ramp

primary
#5E337E
secondary
#81AA63
accent
#D2568B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5E337E

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

Preview Lab → · Contrast checker → · Palette generator →

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