#5E1B97#5E1B97

#5E1B97 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.2% C 0.185 H 303.0°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#5E1B97
RGBrgb(94, 27, 151)
HSLhsl(272, 70%, 35%)
HSVhsv(272, 82%, 59%)
CMYKcmyk(37.7%, 82.1%, 0%, 40.8%)
CIE-LABlab(27.84, 51.65, -54.20)
CIE-LCHlch(27.84, 74.87, 313.62°)
OKLaboklab(40.16% 0.1005 -0.1547)
OKLCHoklch(40.16% 0.185 303)
XYZxyz(10.5926, 5.3979, 29.7560)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1B97 #54971B
analogous
#201B97 #5E1B97 #971B92
triadic
#5E1B97 #975E1B #1B975E
tetradic
#5E1B97 #97201B #54971B #1B9297
square
#5E1B97 #97201B #54971B #1B9297
split-complementary
#5E1B97 #92971B #1B9720
monochromatic
#1D082F #3E1263 #5E1B97 #7E24CB #9C4DDF

Accessibility & contrast

On white

10.10
#5E1B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5E1B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1B97
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1B97#FFFFFF#000000##FFFFFF
##5E1B971.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e1b97;
/* rgb */ color: rgb(94, 27, 151);
/* oklch */ color: oklch(40.2% 0.185 303.0);
Tailwind
colors: {
  custom: {
    50: '#9261b7',
    500: '#5e1b97',
    950: '#000000',
  },
}
SCSS
$custom: #5e1b97;
$custom-light: #9261b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1b97",
  "rgb": {
    "r": 94,
    "g": 27,
    "b": 151
  },
  "hsl": {
    "h": 272.419,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.4016,
    "c": 0.18452,
    "h": 303
  },
  "luminance": 0.05398
}

Semantic roles & 50–950 ramp

primary
#5E1B97
secondary
#82C14C
accent
#EC3B8D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #5E1B97

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

Preview Lab → · Contrast checker → · Palette generator →

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