#5E1782#5E1782

#5E1782 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.168 H 310.7°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#5E1782
RGBrgb(94, 23, 130)
HSLhsl(280, 70%, 30%)
HSVhsv(280, 82%, 51%)
CMYKcmyk(27.7%, 82.3%, 0%, 49%)
CIE-LABlab(25.58, 48.27, -44.84)
CIE-LCHlch(25.58, 65.88, 317.11°)
OKLaboklab(38.03% 0.1095 -0.1272)
OKLCHoklch(38.03% 0.168 310.7)
XYZxyz(8.9510, 4.6044, 21.5320)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1782 #3B8217
analogous
#281782 #5E1782 #821771
triadic
#5E1782 #825E17 #17825E
tetradic
#5E1782 #822817 #3B8217 #177182
square
#5E1782 #822817 #3B8217 #177182
split-complementary
#5E1782 #718217 #178228
monochromatic
#13051A #380E4E #5E1782 #8420B6 #A538DC

Accessibility & contrast

On white

10.93
#5E1782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5E1782 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1782
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1782#FFFFFF#000000##FFFFFF
##5E17821.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A85
Deuteranopia (green-blind)
#003E80
Tritanopia (blue-blind)
#59324D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5e1782;
/* rgb */ color: rgb(94, 23, 130);
/* oklch */ color: oklch(38.0% 0.168 310.7);
Tailwind
colors: {
  custom: {
    50: '#905ea7',
    500: '#5e1782',
    950: '#000000',
  },
}
SCSS
$custom: #5e1782;
$custom-light: #905ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1782",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 130
  },
  "hsl": {
    "h": 279.813,
    "s": 69.935,
    "l": 30
  },
  "oklch": {
    "l": 0.3803,
    "c": 0.16784,
    "h": 310.7
  },
  "luminance": 0.04604
}

Semantic roles & 50–950 ramp

primary
#5E1782
secondary
#67B63E
accent
#ED3B77
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E1782

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

Preview Lab → · Contrast checker → · Palette generator →

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