#5E1790#5E1790

#5E1790 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.2% C 0.181 H 305.7°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#5E1790
RGBrgb(94, 23, 144)
HSLhsl(275, 72%, 33%)
HSVhsv(275, 84%, 56%)
CMYKcmyk(34.7%, 84%, 0%, 43.5%)
CIE-LABlab(26.75, 51.41, -51.66)
CIE-LCHlch(26.75, 72.89, 314.86°)
OKLaboklab(39.22% 0.1056 -0.1472)
OKLCHoklch(39.22% 0.181 305.7)
XYZxyz(9.9554, 5.0062, 26.8220)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1790 #499017
analogous
#221790 #5E1790 #901785
triadic
#5E1790 #905E17 #17905E
tetradic
#5E1790 #902217 #499017 #178590
square
#5E1790 #902217 #499017 #178590
split-complementary
#5E1790 #859017 #179022
monochromatic
#190626 #3C0F5B #5E1790 #801FC5 #9F41E1

Accessibility & contrast

On white

10.49
#5E1790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5E1790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1790
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1790#FFFFFF#000000##FFFFFF
##5E17901.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D93
Deuteranopia (green-blind)
#003F8E
Tritanopia (blue-blind)
#553955
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5e1790;
/* rgb */ color: rgb(94, 23, 144);
/* oklch */ color: oklch(39.2% 0.181 305.7);
Tailwind
colors: {
  custom: {
    50: '#915fb1',
    500: '#5e1790',
    950: '#000000',
  },
}
SCSS
$custom: #5e1790;
$custom-light: #915fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1790",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 144
  },
  "hsl": {
    "h": 275.207,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.39215,
    "c": 0.18122,
    "h": 305.7
  },
  "luminance": 0.05006
}

Semantic roles & 50–950 ramp

primary
#5E1790
secondary
#76C142
accent
#EF3984
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5E1790

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

Preview Lab → · Contrast checker → · Palette generator →

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