#5E1788#5E1788

#5E1788 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.174 H 308.5°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#5E1788
RGBrgb(94, 23, 136)
HSLhsl(278, 71%, 31%)
HSVhsv(278, 83%, 53%)
CMYKcmyk(30.9%, 83.1%, 0%, 46.7%)
CIE-LABlab(26.07, 49.61, -47.80)
CIE-LCHlch(26.07, 68.89, 316.06°)
OKLaboklab(38.53% 0.108 -0.1359)
OKLCHoklch(38.53% 0.174 308.5)
XYZxyz(9.3655, 4.7702, 23.7151)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1788 #418817
analogous
#251788 #5E1788 #881779
triadic
#5E1788 #885E17 #17885E
tetradic
#5E1788 #882517 #418817 #177988
square
#5E1788 #882517 #418817 #177988
split-complementary
#5E1788 #798817 #178825
monochromatic
#16051F #3A0E54 #5E1788 #8220BC #A23BDE

Accessibility & contrast

On white

10.75
#5E1788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5E1788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1788
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1788#FFFFFF#000000##FFFFFF
##5E17881.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e1788;
/* rgb */ color: rgb(94, 23, 136);
/* oklch */ color: oklch(38.5% 0.174 308.5);
Tailwind
colors: {
  custom: {
    50: '#915eac',
    500: '#5e1788',
    950: '#000000',
  },
}
SCSS
$custom: #5e1788;
$custom-light: #915eac;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1788",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 277.699,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38529,
    "c": 0.17356,
    "h": 308.5
  },
  "luminance": 0.0477
}

Semantic roles & 50–950 ramp

primary
#5E1788
secondary
#6DBC3F
accent
#EE3A7D
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1788

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

Preview Lab → · Contrast checker → · Palette generator →

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