#5E3597#5E3597

#5E3597 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.2% C 0.154 H 299.1°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#5E3597
RGBrgb(94, 53, 151)
HSLhsl(265, 48%, 40%)
HSVhsv(265, 65%, 59%)
CMYKcmyk(37.7%, 64.9%, 0%, 40.8%)
CIE-LABlab(32.17, 39.49, -47.16)
CIE-LCHlch(32.17, 61.51, 309.94°)
OKLaboklab(43.23% 0.0747 -0.1342)
OKLCHoklch(43.23% 0.154 299.1)
XYZxyz(11.4737, 7.1601, 30.0497)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E3597 #6E9735
analogous
#353D97 #5E3597 #8F3597
triadic
#5E3597 #975E35 #35975E
tetradic
#5E3597 #97353D #6E9735 #35978F
square
#5E3597 #97353D #6E9735 #35978F
split-complementary
#5E3597 #978F35 #3D9735
monochromatic
#26153C #42256A #5E3597 #7B4ABF #9C77CF

Accessibility & contrast

On white

8.63
#5E3597 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5E3597 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E3597
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E3597#FFFFFF#000000##FFFFFF
##5E35971.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#044B95
Tritanopia (blue-blind)
#514B61
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5e3597;
/* rgb */ color: rgb(94, 53, 151);
/* oklch */ color: oklch(43.2% 0.154 299.1);
Tailwind
colors: {
  custom: {
    50: '#906fb6',
    500: '#5e3597',
    950: '#000000',
  },
}
SCSS
$custom: #5e3597;
$custom-light: #906fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e3597",
  "rgb": {
    "r": 94,
    "g": 53,
    "b": 151
  },
  "hsl": {
    "h": 265.102,
    "s": 48.039,
    "l": 40
  },
  "oklch": {
    "l": 0.43232,
    "c": 0.15357,
    "h": 299.1
  },
  "luminance": 0.0716
}

Semantic roles & 50–950 ramp

primary
#5E3597
secondary
#9AB870
accent
#D8509F
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5E3597

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

Preview Lab → · Contrast checker → · Palette generator →

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