#5E1588#5E1588

#5E1588 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.175 H 308.6°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#5E1588
RGBrgb(94, 21, 136)
HSLhsl(278, 73%, 31%)
HSVhsv(278, 85%, 53%)
CMYKcmyk(30.9%, 84.6%, 0%, 46.7%)
CIE-LABlab(25.84, 50.26, -48.17)
CIE-LCHlch(25.84, 69.62, 316.22°)
OKLaboklab(38.37% 0.1095 -0.137)
OKLCHoklch(38.37% 0.175 308.6)
XYZxyz(9.3273, 4.6938, 23.7024)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1588 #3F8815
analogous
#241588 #5E1588 #881578
triadic
#5E1588 #885E15 #15885E
tetradic
#5E1588 #882415 #3F8815 #157888
square
#5E1588 #882415 #3F8815 #157888
split-complementary
#5E1588 #788815 #158824
monochromatic
#15051E #390D53 #5E1588 #831DBD #A237E0

Accessibility & contrast

On white

10.83
#5E1588 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5E1588 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1588
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1588#FFFFFF#000000##FFFFFF
##5E15881.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003E86
Tritanopia (blue-blind)
#573450
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5e1588;
/* rgb */ color: rgb(94, 21, 136);
/* oklch */ color: oklch(38.4% 0.175 308.6);
Tailwind
colors: {
  custom: {
    50: '#915eac',
    500: '#5e1588',
    950: '#000000',
  },
}
SCSS
$custom: #5e1588;
$custom-light: #915eac;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1588",
  "rgb": {
    "r": 94,
    "g": 21,
    "b": 136
  },
  "hsl": {
    "h": 278.087,
    "s": 73.248,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38371,
    "c": 0.17533,
    "h": 308.6
  },
  "luminance": 0.04694
}

Semantic roles & 50–950 ramp

primary
#5E1588
secondary
#6BBC3D
accent
#F0387B
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1588

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

Preview Lab → · Contrast checker → · Palette generator →

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