#5E2794#5E2794

#5E2794 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.1% C 0.169 H 302.5°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#5E2794
RGBrgb(94, 39, 148)
HSLhsl(270, 58%, 37%)
HSVhsv(270, 74%, 58%)
CMYKcmyk(36.5%, 73.6%, 0%, 42%)
CIE-LABlab(29.33, 45.91, -49.92)
CIE-LCHlch(29.33, 67.83, 312.60°)
OKLaboklab(41.13% 0.0906 -0.1422)
OKLCHoklch(41.13% 0.169 302.5)
XYZxyz(10.6856, 5.9688, 28.6004)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2794 #5D9427
analogous
#272794 #5E2794 #942794
triadic
#5E2794 #945E27 #27945E
tetradic
#5E2794 #942727 #5D9427 #279494
square
#5E2794 #942727 #5D9427 #279494
split-complementary
#5E2794 #949427 #279427
monochromatic
#200D33 #3F1A64 #5E2794 #7D34C4 #9B60D5

Accessibility & contrast

On white

9.57
#5E2794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5E2794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2794
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2794#FFFFFF#000000##FFFFFF
##5E27941.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004497
Deuteranopia (green-blind)
#004592
Tritanopia (blue-blind)
#53425B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5e2794;
/* rgb */ color: rgb(94, 39, 148);
/* oklch */ color: oklch(41.1% 0.169 302.5);
Tailwind
colors: {
  custom: {
    50: '#9166b4',
    500: '#5e2794',
    950: '#000000',
  },
}
SCSS
$custom: #5e2794;
$custom-light: #9166b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2794",
  "rgb": {
    "r": 94,
    "g": 39,
    "b": 148
  },
  "hsl": {
    "h": 270.275,
    "s": 58.289,
    "l": 36.667
  },
  "oklch": {
    "l": 0.4113,
    "c": 0.16866,
    "h": 302.5
  },
  "luminance": 0.05969
}

Semantic roles & 50–950 ramp

primary
#5E2794
secondary
#8BBB5C
accent
#E24693
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2794

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

Preview Lab → · Contrast checker → · Palette generator →

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