#5E1E9F#5E1E9F

#5E1E9F is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.1% C 0.190 H 300.3°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#5E1E9F
RGBrgb(94, 30, 159)
HSLhsl(270, 68%, 37%)
HSVhsv(270, 81%, 62%)
CMYKcmyk(40.9%, 81.1%, 0%, 37.6%)
CIE-LABlab(28.93, 52.45, -57.31)
CIE-LCHlch(28.93, 77.69, 312.47°)
OKLaboklab(41.14% 0.0958 -0.1639)
OKLCHoklch(41.14% 0.19 300.3)
XYZxyz(11.3368, 5.8113, 33.3186)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1E9F #5F9F1E
analogous
#1E1F9F #5E1E9F #9E1E9F
triadic
#5E1E9F #9F5E1E #1E9F5E
tetradic
#5E1E9F #9F1E1F #5F9F1E #1E9F9E
square
#5E1E9F #9F1E1F #5F9F1E #1E9F9E
split-complementary
#5E1E9F #9F9E1E #1F9F1E
monochromatic
#210B38 #40146C #5E1E9F #7C28D2 #9B58DF

Accessibility & contrast

On white

9.71
#5E1E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5E1E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1E9F
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1E9F#FFFFFF#000000##FFFFFF
##5E1E9F1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#00439D
Tritanopia (blue-blind)
#4F425F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5e1e9f;
/* rgb */ color: rgb(94, 30, 159);
/* oklch */ color: oklch(41.1% 0.190 300.3);
Tailwind
colors: {
  custom: {
    50: '#9263bc',
    500: '#5e1e9f',
    950: '#000000',
  },
}
SCSS
$custom: #5e1e9f;
$custom-light: #9263bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1e9f",
  "rgb": {
    "r": 94,
    "g": 30,
    "b": 159
  },
  "hsl": {
    "h": 269.767,
    "s": 68.254,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41137,
    "c": 0.18981,
    "h": 300.3
  },
  "luminance": 0.05811
}

Semantic roles & 50–950 ramp

primary
#5E1E9F
secondary
#8DC356
accent
#EB3D95
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E1E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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