#5E2796#5E2796

#5E2796 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.171 H 301.9°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#5E2796
RGBrgb(94, 39, 150)
HSLhsl(270, 59%, 37%)
HSVhsv(270, 74%, 59%)
CMYKcmyk(37.3%, 74%, 0%, 41.2%)
CIE-LABlab(29.49, 46.42, -50.89)
CIE-LCHlch(29.49, 68.88, 312.37°)
OKLaboklab(41.29% 0.0902 -0.1451)
OKLCHoklch(41.29% 0.171 301.9)
XYZxyz(10.8453, 6.0327, 29.4413)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2796 #5F9627
analogous
#272796 #5E2796 #962796
triadic
#5E2796 #965E27 #27965E
tetradic
#5E2796 #962727 #5F9627 #279696
square
#5E2796 #962727 #5F9627 #279696
split-complementary
#5E2796 #969627 #279627
monochromatic
#210E35 #401A65 #5E2796 #7C34C7 #9B61D6

Accessibility & contrast

On white

9.52
#5E2796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E2796
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2796#FFFFFF#000000##FFFFFF
##5E27961.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004599
Deuteranopia (green-blind)
#004594
Tritanopia (blue-blind)
#52425C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5e2796;
/* rgb */ color: rgb(94, 39, 150);
/* oklch */ color: oklch(41.3% 0.171 301.9);
Tailwind
colors: {
  custom: {
    50: '#9166b6',
    500: '#5e2796',
    950: '#000000',
  },
}
SCSS
$custom: #5e2796;
$custom-light: #9166b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2796",
  "rgb": {
    "r": 94,
    "g": 39,
    "b": 150
  },
  "hsl": {
    "h": 269.73,
    "s": 58.73,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41294,
    "c": 0.17085,
    "h": 301.9
  },
  "luminance": 0.06033
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5E2796

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

Preview Lab → · Contrast checker → · Palette generator →

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