#5E1B98#5E1B98

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

Color values

HEX#5E1B98
RGBrgb(94, 27, 152)
HSLhsl(272, 70%, 35%)
HSVhsv(272, 82%, 60%)
CMYKcmyk(38.2%, 82.2%, 0%, 40.4%)
CIE-LABlab(27.93, 51.89, -54.67)
CIE-LCHlch(27.93, 75.38, 313.50°)
OKLaboklab(40.25% 0.1002 -0.1561)
OKLCHoklch(40.25% 0.186 302.7)
XYZxyz(10.6742, 5.4305, 30.1855)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1B98 #55981B
analogous
#201B98 #5E1B98 #981B93
triadic
#5E1B98 #985E1B #1B985E
tetradic
#5E1B98 #98201B #55981B #1B9398
square
#5E1B98 #98201B #55981B #1B9398
split-complementary
#5E1B98 #93981B #1B9820
monochromatic
#1E0930 #3E1264 #5E1B98 #7E24CC #9C4EE0

Accessibility & contrast

On white

10.07
#5E1B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5E1B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1B98
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1B98#FFFFFF#000000##FFFFFF
##5E1B981.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#004196
Tritanopia (blue-blind)
#523E5B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5e1b98;
/* rgb */ color: rgb(94, 27, 152);
/* oklch */ color: oklch(40.2% 0.186 302.7);
Tailwind
colors: {
  custom: {
    50: '#9261b7',
    500: '#5e1b98',
    950: '#000000',
  },
}
SCSS
$custom: #5e1b98;
$custom-light: #9261b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1b98",
  "rgb": {
    "r": 94,
    "g": 27,
    "b": 152
  },
  "hsl": {
    "h": 272.16,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40248,
    "c": 0.18551,
    "h": 302.7
  },
  "luminance": 0.05431
}

Semantic roles & 50–950 ramp

primary
#5E1B98
secondary
#83C24D
accent
#ED3B8E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #5E1B98

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

Preview Lab → · Contrast checker → · Palette generator →

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