#5E2394#5E2394

#5E2394 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.173 H 303.0°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#5E2394
RGBrgb(94, 35, 148)
HSLhsl(271, 62%, 36%)
HSVhsv(271, 76%, 58%)
CMYKcmyk(36.5%, 76.4%, 0%, 42%)
CIE-LABlab(28.69, 47.73, -50.96)
CIE-LCHlch(28.69, 69.82, 313.12°)
OKLaboklab(40.68% 0.0945 -0.1453)
OKLCHoklch(40.68% 0.173 303)
XYZxyz(10.5612, 5.7199, 28.5589)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2394 #599423
analogous
#252394 #5E2394 #942391
triadic
#5E2394 #945E23 #23945E
tetradic
#5E2394 #942523 #599423 #239194
square
#5E2394 #942523 #599423 #239194
split-complementary
#5E2394 #919423 #239425
monochromatic
#1F0C31 #3F1763 #5E2394 #7D2FC5 #9B5AD8

Accessibility & contrast

On white

9.79
#5E2394 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5E2394 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2394
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2394#FFFFFF#000000##FFFFFF
##5E23941.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004397
Deuteranopia (green-blind)
#004392
Tritanopia (blue-blind)
#53405A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5e2394;
/* rgb */ color: rgb(94, 35, 148);
/* oklch */ color: oklch(40.7% 0.173 303.0);
Tailwind
colors: {
  custom: {
    50: '#9164b4',
    500: '#5e2394',
    950: '#000000',
  },
}
SCSS
$custom: #5e2394;
$custom-light: #9164b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2394",
  "rgb": {
    "r": 94,
    "g": 35,
    "b": 148
  },
  "hsl": {
    "h": 271.327,
    "s": 61.749,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40678,
    "c": 0.17332,
    "h": 303
  },
  "luminance": 0.0572
}

Semantic roles & 50–950 ramp

primary
#5E2394
secondary
#87BC57
accent
#E54390
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2394

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

Preview Lab → · Contrast checker → · Palette generator →

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