#5E2596#5E2596

#5E2596 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.1% C 0.173 H 302.2°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#5E2596
RGBrgb(94, 37, 150)
HSLhsl(270, 60%, 37%)
HSVhsv(270, 75%, 59%)
CMYKcmyk(37.3%, 75.3%, 0%, 41.2%)
CIE-LABlab(29.17, 47.33, -51.42)
CIE-LCHlch(29.17, 69.89, 312.63°)
OKLaboklab(41.07% 0.0922 -0.1466)
OKLCHoklch(41.07% 0.173 302.2)
XYZxyz(10.7814, 5.9048, 29.4200)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2596 #5D9625
analogous
#252596 #5E2596 #962596
triadic
#5E2596 #965E25 #25965E
tetradic
#5E2596 #962525 #5D9625 #259696
square
#5E2596 #962525 #5D9625 #259696
split-complementary
#5E2596 #969625 #259625
monochromatic
#200D34 #3F1965 #5E2596 #7D31C7 #9B5ED7

Accessibility & contrast

On white

9.63
#5E2596 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5E2596 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2596
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2596#FFFFFF#000000##FFFFFF
##5E25961.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004499
Deuteranopia (green-blind)
#004494
Tritanopia (blue-blind)
#52415C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5e2596;
/* rgb */ color: rgb(94, 37, 150);
/* oklch */ color: oklch(41.1% 0.173 302.2);
Tailwind
colors: {
  custom: {
    50: '#9165b6',
    500: '#5e2596',
    950: '#000000',
  },
}
SCSS
$custom: #5e2596;
$custom-light: #9165b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2596",
  "rgb": {
    "r": 94,
    "g": 37,
    "b": 150
  },
  "hsl": {
    "h": 270.265,
    "s": 60.428,
    "l": 36.667
  },
  "oklch": {
    "l": 0.41066,
    "c": 0.17318,
    "h": 302.2
  },
  "luminance": 0.05905
}

Semantic roles & 50–950 ramp

primary
#5E2596
secondary
#8BBC5B
accent
#E44493
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2596

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

Preview Lab → · Contrast checker → · Palette generator →

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