#5E1796#5E1796

#5E1796 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.7% C 0.187 H 303.7°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#5E1796
RGBrgb(94, 23, 150)
HSLhsl(274, 73%, 34%)
HSVhsv(274, 85%, 59%)
CMYKcmyk(37.3%, 84.7%, 0%, 41.2%)
CIE-LABlab(27.28, 52.79, -54.50)
CIE-LCHlch(27.28, 75.88, 314.09°)
OKLaboklab(39.75% 0.1037 -0.1556)
OKLCHoklch(39.75% 0.187 303.7)
XYZxyz(10.4262, 5.1945, 29.3016)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1796 #4F9617
analogous
#1F1796 #5E1796 #96178F
triadic
#5E1796 #965E17 #17965E
tetradic
#5E1796 #961F17 #4F9617 #178F96
square
#5E1796 #961F17 #4F9617 #178F96
split-complementary
#5E1796 #8F9617 #17961F
monochromatic
#1B072C #3D0F61 #5E1796 #7F1FCB #9D45E2

Accessibility & contrast

On white

10.30
#5E1796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5E1796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1796
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1796#FFFFFF#000000##FFFFFF
##5E17961.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#004094
Tritanopia (blue-blind)
#523B59
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5e1796;
/* rgb */ color: rgb(94, 23, 150);
/* oklch */ color: oklch(39.7% 0.187 303.7);
Tailwind
colors: {
  custom: {
    50: '#925fb6',
    500: '#5e1796',
    950: '#000000',
  },
}
SCSS
$custom: #5e1796;
$custom-light: #925fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1796",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 150
  },
  "hsl": {
    "h": 273.543,
    "s": 73.41,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39745,
    "c": 0.18698,
    "h": 303.7
  },
  "luminance": 0.05194
}

Semantic roles & 50–950 ramp

primary
#5E1796
secondary
#7DC345
accent
#F03889
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0511
muted
#7E7980

Preview Lab

Preview with #5E1796

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

Preview Lab → · Contrast checker → · Palette generator →

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