#5E1D97#5E1D97

#5E1D97 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.3% C 0.183 H 302.8°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#5E1D97
RGBrgb(94, 29, 151)
HSLhsl(272, 68%, 35%)
HSVhsv(272, 81%, 59%)
CMYKcmyk(37.7%, 80.8%, 0%, 40.8%)
CIE-LABlab(28.09, 50.91, -53.79)
CIE-LCHlch(28.09, 74.06, 313.43°)
OKLaboklab(40.34% 0.099 -0.1535)
OKLCHoklch(40.34% 0.183 302.8)
XYZxyz(10.6400, 5.4928, 29.7718)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1D97 #56971D
analogous
#211D97 #5E1D97 #971D93
triadic
#5E1D97 #975E1D #1D975E
tetradic
#5E1D97 #97211D #56971D #1D9397
square
#5E1D97 #97211D #56971D #1D9397
split-complementary
#5E1D97 #93971D #1D9721
monochromatic
#1E0930 #3E1364 #5E1D97 #7E27CA #9C51DE

Accessibility & contrast

On white

10.01
#5E1D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5E1D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1D97
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1D97#FFFFFF#000000##FFFFFF
##5E1D971.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#523E5A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5e1d97;
/* rgb */ color: rgb(94, 29, 151);
/* oklch */ color: oklch(40.3% 0.183 302.8);
Tailwind
colors: {
  custom: {
    50: '#9262b7',
    500: '#5e1d97',
    950: '#000000',
  },
}
SCSS
$custom: #5e1d97;
$custom-light: #9262b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1d97",
  "rgb": {
    "r": 94,
    "g": 29,
    "b": 151
  },
  "hsl": {
    "h": 271.967,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40337,
    "c": 0.18266,
    "h": 302.8
  },
  "luminance": 0.05493
}

Semantic roles & 50–950 ramp

primary
#5E1D97
secondary
#84C04F
accent
#EB3D8E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #5E1D97

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

Preview Lab → · Contrast checker → · Palette generator →

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