#5E1F9F#5E1F9F

#5E1F9F is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.2% C 0.189 H 300.2°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#5E1F9F
RGBrgb(94, 31, 159)
HSLhsl(270, 67%, 37%)
HSVhsv(270, 81%, 62%)
CMYKcmyk(40.9%, 80.5%, 0%, 37.6%)
CIE-LABlab(29.06, 52.07, -57.09)
CIE-LCHlch(29.06, 77.27, 312.37°)
OKLaboklab(41.23% 0.095 -0.1632)
OKLCHoklch(41.23% 0.189 300.2)
XYZxyz(11.3625, 5.8627, 33.3272)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1F9F #609F1F
analogous
#1F209F #5E1F9F #9E1F9F
triadic
#5E1F9F #9F5E1F #1F9F5E
tetradic
#5E1F9F #9F1F20 #609F1F #1F9F9E
square
#5E1F9F #9F1F20 #609F1F #1F9F9E
split-complementary
#5E1F9F #9F9E1F #209F1F
monochromatic
#210B39 #40156C #5E1F9F #7C29D2 #9B5ADF

Accessibility & contrast

On white

9.67
#5E1F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E1F9F
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1F9F#FFFFFF#000000##FFFFFF
##5E1F9F1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e1f9f;
/* rgb */ color: rgb(94, 31, 159);
/* oklch */ color: oklch(41.2% 0.189 300.2);
Tailwind
colors: {
  custom: {
    50: '#9263bc',
    500: '#5e1f9f',
    950: '#000000',
  },
}
SCSS
$custom: #5e1f9f;
$custom-light: #9263bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1f9f",
  "rgb": {
    "r": 94,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 269.531,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41229,
    "c": 0.18888,
    "h": 300.2
  },
  "luminance": 0.05863
}

Semantic roles & 50–950 ramp

primary
#5E1F9F
secondary
#8EC357
accent
#EA3E95
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E1F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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