#5E1983#5E1983

#5E1983 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.167 H 310.2°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#5E1983
RGBrgb(94, 25, 131)
HSLhsl(279, 68%, 31%)
HSVhsv(279, 81%, 51%)
CMYKcmyk(28.2%, 80.9%, 0%, 48.6%)
CIE-LABlab(25.90, 47.78, -44.94)
CIE-LCHlch(25.90, 65.59, 316.76°)
OKLaboklab(38.29% 0.1076 -0.1275)
OKLCHoklch(38.29% 0.167 310.2)
XYZxyz(9.0596, 4.7138, 21.9009)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1983 #3E8319
analogous
#291983 #5E1983 #831973
triadic
#5E1983 #835E19 #19835E
tetradic
#5E1983 #832919 #3E8319 #197383
square
#5E1983 #832919 #3E8319 #197383
split-complementary
#5E1983 #738319 #198329
monochromatic
#14051C #390F50 #5E1983 #8323B6 #A33DDA

Accessibility & contrast

On white

10.81
#5E1983 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5E1983 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1983
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1983#FFFFFF#000000##FFFFFF
##5E19831.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e1983;
/* rgb */ color: rgb(94, 25, 131);
/* oklch */ color: oklch(38.3% 0.167 310.2);
Tailwind
colors: {
  custom: {
    50: '#905fa8',
    500: '#5e1983',
    950: '#000000',
  },
}
SCSS
$custom: #5e1983;
$custom-light: #905fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1983",
  "rgb": {
    "r": 94,
    "g": 25,
    "b": 131
  },
  "hsl": {
    "h": 279.057,
    "s": 67.949,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38285,
    "c": 0.16681,
    "h": 310.2
  },
  "luminance": 0.04714
}

Semantic roles & 50–950 ramp

primary
#5E1983
secondary
#6AB741
accent
#EB3D7A
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1983

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

Preview Lab → · Contrast checker → · Palette generator →

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