#5E1F97#5E1F97

#5E1F97 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.5% C 0.181 H 302.6°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#5E1F97
RGBrgb(94, 31, 151)
HSLhsl(272, 66%, 36%)
HSVhsv(272, 79%, 59%)
CMYKcmyk(37.7%, 79.5%, 0%, 40.8%)
CIE-LABlab(28.36, 50.13, -53.35)
CIE-LCHlch(28.36, 73.20, 313.22°)
OKLaboklab(40.53% 0.0973 -0.1522)
OKLCHoklch(40.53% 0.181 302.6)
XYZxyz(10.6907, 5.5940, 29.7887)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1F97 #58971F
analogous
#221F97 #5E1F97 #971F94
triadic
#5E1F97 #975E1F #1F975E
tetradic
#5E1F97 #97221F #58971F #1F9497
square
#5E1F97 #97221F #58971F #1F9497
split-complementary
#5E1F97 #94971F #1F9722
monochromatic
#1F0A31 #3E1564 #5E1F97 #7E29CA #9C54DC

Accessibility & contrast

On white

9.91
#5E1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5E1F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1F97
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1F97#FFFFFF#000000##FFFFFF
##5E1F971.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#523F5B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5e1f97;
/* rgb */ color: rgb(94, 31, 151);
/* oklch */ color: oklch(40.5% 0.181 302.6);
Tailwind
colors: {
  custom: {
    50: '#9163b7',
    500: '#5e1f97',
    950: '#000000',
  },
}
SCSS
$custom: #5e1f97;
$custom-light: #9163b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1f97",
  "rgb": {
    "r": 94,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 271.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40525,
    "c": 0.1807,
    "h": 302.6
  },
  "luminance": 0.05594
}

Semantic roles & 50–950 ramp

primary
#5E1F97
secondary
#86BF52
accent
#E93F90
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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