#5E1783#5E1783

#5E1783 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.169 H 310.3°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#5E1783
RGBrgb(94, 23, 131)
HSLhsl(279, 70%, 30%)
HSVhsv(279, 82%, 51%)
CMYKcmyk(28.2%, 82.4%, 0%, 48.6%)
CIE-LABlab(25.66, 48.49, -45.33)
CIE-LCHlch(25.66, 66.38, 316.93°)
OKLaboklab(38.11% 0.1093 -0.1286)
OKLCHoklch(38.11% 0.169 310.3)
XYZxyz(9.0184, 4.6314, 21.8872)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1783 #3C8317
analogous
#281783 #5E1783 #831772
triadic
#5E1783 #835E17 #17835E
tetradic
#5E1783 #832817 #3C8317 #177283
square
#5E1783 #832817 #3C8317 #177283
split-complementary
#5E1783 #728317 #178328
monochromatic
#13051B #390E4F #5E1783 #8320B7 #A438DC

Accessibility & contrast

On white

10.90
#5E1783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5E1783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1783
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1783#FFFFFF#000000##FFFFFF
##5E17831.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A86
Deuteranopia (green-blind)
#003E81
Tritanopia (blue-blind)
#59334E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5e1783;
/* rgb */ color: rgb(94, 23, 131);
/* oklch */ color: oklch(38.1% 0.169 310.3);
Tailwind
colors: {
  custom: {
    50: '#905ea8',
    500: '#5e1783',
    950: '#000000',
  },
}
SCSS
$custom: #5e1783;
$custom-light: #905ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1783",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 131
  },
  "hsl": {
    "h": 279.444,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.38112,
    "c": 0.16879,
    "h": 310.3
  },
  "luminance": 0.04631
}

Semantic roles & 50–950 ramp

primary
#5E1783
secondary
#68B73F
accent
#ED3B78
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1783

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

Preview Lab → · Contrast checker → · Palette generator →

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