#5E2797#5E2797

#5E2797 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.4% C 0.172 H 301.6°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#5E2797
RGBrgb(94, 39, 151)
HSLhsl(269, 59%, 37%)
HSVhsv(269, 74%, 59%)
CMYKcmyk(37.7%, 74.2%, 0%, 40.8%)
CIE-LABlab(29.58, 46.67, -51.37)
CIE-LCHlch(29.58, 69.40, 312.25°)
OKLaboklab(41.38% 0.09 -0.1465)
OKLCHoklch(41.38% 0.172 301.6)
XYZxyz(10.9262, 6.0650, 29.8672)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2797 #609727
analogous
#272897 #5E2797 #962797
triadic
#5E2797 #975E27 #27975E
tetradic
#5E2797 #972728 #609727 #279796
square
#5E2797 #972728 #609727 #279796
split-complementary
#5E2797 #979627 #289727
monochromatic
#210E36 #401A66 #5E2797 #7C34C8 #9B62D6

Accessibility & contrast

On white

9.49
#5E2797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5E2797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2797
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2797#FFFFFF#000000##FFFFFF
##5E27971.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#004595
Tritanopia (blue-blind)
#52435D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5e2797;
/* rgb */ color: rgb(94, 39, 151);
/* oklch */ color: oklch(41.4% 0.172 301.6);
Tailwind
colors: {
  custom: {
    50: '#9166b6',
    500: '#5e2797',
    950: '#000000',
  },
}
SCSS
$custom: #5e2797;
$custom-light: #9166b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2797",
  "rgb": {
    "r": 94,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 269.464,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41377,
    "c": 0.17194,
    "h": 301.6
  },
  "luminance": 0.06065
}

Semantic roles & 50–950 ramp

primary
#5E2797
secondary
#8EBC5E
accent
#E24695
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2797

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

Preview Lab → · Contrast checker → · Palette generator →

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