#5E2595#5E2595

#5E2595 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.0% C 0.172 H 302.5°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#5E2595
RGBrgb(94, 37, 149)
HSLhsl(271, 60%, 36%)
HSVhsv(271, 75%, 58%)
CMYKcmyk(36.9%, 75.2%, 0%, 41.6%)
CIE-LABlab(29.09, 47.09, -50.94)
CIE-LCHlch(29.09, 69.37, 312.75°)
OKLaboklab(40.98% 0.0924 -0.1452)
OKLCHoklch(40.98% 0.172 302.5)
XYZxyz(10.7012, 5.8727, 28.9977)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2595 #5C9525
analogous
#262595 #5E2595 #952594
triadic
#5E2595 #955E25 #25955E
tetradic
#5E2595 #952625 #5C9525 #259495
square
#5E2595 #952625 #5C9525 #259495
split-complementary
#5E2595 #949525 #259526
monochromatic
#200D33 #3F1964 #5E2595 #7D31C6 #9B5ED7

Accessibility & contrast

On white

9.66
#5E2595 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5E2595 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2595
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2595#FFFFFF#000000##FFFFFF
##5E25951.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004498
Deuteranopia (green-blind)
#004493
Tritanopia (blue-blind)
#52415B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5e2595;
/* rgb */ color: rgb(94, 37, 149);
/* oklch */ color: oklch(41.0% 0.172 302.5);
Tailwind
colors: {
  custom: {
    50: '#9165b5',
    500: '#5e2595',
    950: '#000000',
  },
}
SCSS
$custom: #5e2595;
$custom-light: #9165b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2595",
  "rgb": {
    "r": 94,
    "g": 37,
    "b": 149
  },
  "hsl": {
    "h": 270.536,
    "s": 60.215,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40982,
    "c": 0.1721,
    "h": 302.5
  },
  "luminance": 0.05873
}

Semantic roles & 50–950 ramp

primary
#5E2595
secondary
#8ABC5A
accent
#E34492
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2595

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

Preview Lab → · Contrast checker → · Palette generator →

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