#5E1C93#5E1C93

#5E1C93 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.9% C 0.180 H 304.2°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#5E1C93
RGBrgb(94, 28, 147)
HSLhsl(273, 68%, 34%)
HSVhsv(273, 81%, 58%)
CMYKcmyk(36.1%, 81%, 0%, 42.4%)
CIE-LABlab(27.62, 50.34, -52.10)
CIE-LCHlch(27.62, 72.45, 314.02°)
OKLaboklab(39.9% 0.1009 -0.1486)
OKLCHoklch(39.9% 0.18 304.2)
XYZxyz(10.2966, 5.3168, 28.0819)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1C93 #51931C
analogous
#221C93 #5E1C93 #931C8D
triadic
#5E1C93 #935E1C #1C935E
tetradic
#5E1C93 #93221C #51931C #1C8D93
square
#5E1C93 #93221C #51931C #1C8D93
split-complementary
#5E1C93 #8D931C #1C9322
monochromatic
#1C082C #3D1260 #5E1C93 #7F26C6 #9D4CDD

Accessibility & contrast

On white

10.18
#5E1C93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5E1C93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1C93
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1C93#FFFFFF#000000##FFFFFF
##5E1C931.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004096
Deuteranopia (green-blind)
#004191
Tritanopia (blue-blind)
#533C58
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5e1c93;
/* rgb */ color: rgb(94, 28, 147);
/* oklch */ color: oklch(39.9% 0.180 304.2);
Tailwind
colors: {
  custom: {
    50: '#9161b4',
    500: '#5e1c93',
    950: '#000000',
  },
}
SCSS
$custom: #5e1c93;
$custom-light: #9161b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1c93",
  "rgb": {
    "r": 94,
    "g": 28,
    "b": 147
  },
  "hsl": {
    "h": 273.277,
    "s": 68,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39898,
    "c": 0.1796,
    "h": 304.2
  },
  "luminance": 0.05317
}

Semantic roles & 50–950 ramp

primary
#5E1C93
secondary
#7FBF4C
accent
#EB3D8A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5E1C93

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

Preview Lab → · Contrast checker → · Palette generator →

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