#5E1994#5E1994

#5E1994 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.7% C 0.183 H 304.2°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#5E1994
RGBrgb(94, 25, 148)
HSLhsl(274, 71%, 34%)
HSVhsv(274, 83%, 58%)
CMYKcmyk(36.5%, 83.1%, 0%, 42%)
CIE-LABlab(27.33, 51.66, -53.18)
CIE-LCHlch(27.33, 74.14, 314.17°)
OKLaboklab(39.73% 0.1029 -0.1517)
OKLCHoklch(39.73% 0.183 304.2)
XYZxyz(10.3078, 5.2131, 28.4744)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1994 #4F9419
analogous
#211994 #5E1994 #94198D
triadic
#5E1994 #945E19 #19945E
tetradic
#5E1994 #942119 #4F9419 #198D94
square
#5E1994 #942119 #4F9419 #198D94
split-complementary
#5E1994 #8D9419 #199421
monochromatic
#1B072B #3D1060 #5E1994 #7F22C8 #9D47E0

Accessibility & contrast

On white

10.28
#5E1994 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5E1994 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1994
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1994#FFFFFF#000000##FFFFFF
##5E19941.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F97
Deuteranopia (green-blind)
#004092
Tritanopia (blue-blind)
#533B58
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5e1994;
/* rgb */ color: rgb(94, 25, 148);
/* oklch */ color: oklch(39.7% 0.183 304.2);
Tailwind
colors: {
  custom: {
    50: '#9160b4',
    500: '#5e1994',
    950: '#000000',
  },
}
SCSS
$custom: #5e1994;
$custom-light: #9160b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1994",
  "rgb": {
    "r": 94,
    "g": 25,
    "b": 148
  },
  "hsl": {
    "h": 273.659,
    "s": 71.098,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39727,
    "c": 0.18335,
    "h": 304.2
  },
  "luminance": 0.05213
}

Semantic roles & 50–950 ramp

primary
#5E1994
secondary
#7DC147
accent
#EE3A89
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0511
muted
#7E7980

Preview Lab

Preview with #5E1994

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

Preview Lab → · Contrast checker → · Palette generator →

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