#5E1A98#5E1A98

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

Color values

HEX#5E1A98
RGBrgb(94, 26, 152)
HSLhsl(272, 71%, 35%)
HSVhsv(272, 83%, 60%)
CMYKcmyk(38.2%, 82.9%, 0%, 40.4%)
CIE-LABlab(27.81, 52.24, -54.87)
CIE-LCHlch(27.81, 75.76, 313.59°)
OKLaboklab(40.16% 0.101 -0.1567)
OKLCHoklch(40.16% 0.186 302.8)
XYZxyz(10.6516, 5.3855, 30.1780)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1A98 #54981A
analogous
#1F1A98 #5E1A98 #981A93
triadic
#5E1A98 #985E1A #1A985E
tetradic
#5E1A98 #981F1A #54981A #1A9398
square
#5E1A98 #981F1A #54981A #1A9398
split-complementary
#5E1A98 #93981A #1A981F
monochromatic
#1D082F #3E1164 #5E1A98 #7E23CC #9C4CE0

Accessibility & contrast

On white

10.11
#5E1A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E1A98
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1A98#FFFFFF#000000##FFFFFF
##5E1A981.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e1a98;
/* rgb */ color: rgb(94, 26, 152);
/* oklch */ color: oklch(40.2% 0.186 302.8);
Tailwind
colors: {
  custom: {
    50: '#9260b7',
    500: '#5e1a98',
    950: '#000000',
  },
}
SCSS
$custom: #5e1a98;
$custom-light: #9260b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1a98",
  "rgb": {
    "r": 94,
    "g": 26,
    "b": 152
  },
  "hsl": {
    "h": 272.381,
    "s": 70.787,
    "l": 34.902
  },
  "oklch": {
    "l": 0.40163,
    "c": 0.1864,
    "h": 302.8
  },
  "luminance": 0.05385
}

Semantic roles & 50–950 ramp

primary
#5E1A98
secondary
#82C24B
accent
#EE3A8D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #5E1A98

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

Preview Lab → · Contrast checker → · Palette generator →

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