#5E1E8F#5E1E8F

#5E1E8F is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.174 H 305.3°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#5E1E8F
RGBrgb(94, 30, 143)
HSLhsl(274, 65%, 34%)
HSVhsv(274, 79%, 56%)
CMYKcmyk(34.3%, 79%, 0%, 43.9%)
CIE-LABlab(27.55, 48.62, -49.74)
CIE-LCHlch(27.55, 69.56, 314.35°)
OKLaboklab(39.75% 0.1003 -0.1417)
OKLCHoklch(39.75% 0.174 305.3)
XYZxyz(10.0372, 5.2915, 26.4739)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1E8F #4F8F1E
analogous
#251E8F #5E1E8F #8F1E88
triadic
#5E1E8F #8F5E1E #1E8F5E
tetradic
#5E1E8F #8F251E #4F8F1E #1E888F
square
#5E1E8F #8F251E #4F8F1E #1E888F
split-complementary
#5E1E8F #888F1E #1E8F25
monochromatic
#1B092A #3D135C #5E1E8F #7F29C2 #9D4EDA

Accessibility & contrast

On white

10.20
#5E1E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5E1E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1E8F
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1E8F#FFFFFF#000000##FFFFFF
##5E1E8F1.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#00418D
Tritanopia (blue-blind)
#553B56
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5e1e8f;
/* rgb */ color: rgb(94, 30, 143);
/* oklch */ color: oklch(39.7% 0.174 305.3);
Tailwind
colors: {
  custom: {
    50: '#9162b1',
    500: '#5e1e8f',
    950: '#000000',
  },
}
SCSS
$custom: #5e1e8f;
$custom-light: #9162b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1e8f",
  "rgb": {
    "r": 94,
    "g": 30,
    "b": 143
  },
  "hsl": {
    "h": 273.982,
    "s": 65.318,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39745,
    "c": 0.17357,
    "h": 305.3
  },
  "luminance": 0.05291
}

Semantic roles & 50–950 ramp

primary
#5E1E8F
secondary
#7DBC4C
accent
#E84089
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5E1E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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