#5E18A0#5E18A0

#5E18A0 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.7% C 0.196 H 300.6°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#5E18A0
RGBrgb(94, 24, 160)
HSLhsl(271, 74%, 36%)
HSVhsv(271, 85%, 63%)
CMYKcmyk(41.3%, 85%, 0%, 37.3%)
CIE-LABlab(28.30, 54.80, -58.94)
CIE-LCHlch(28.30, 80.48, 312.91°)
OKLaboklab(40.73% 0.0997 -0.1686)
OKLCHoklch(40.73% 0.196 300.6)
XYZxyz(11.2863, 5.5709, 33.7316)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E18A0 #5AA018
analogous
#1A18A0 #5E18A0 #A0189E
triadic
#5E18A0 #A05E18 #18A05E
tetradic
#5E18A0 #A01A18 #5AA018 #189EA0
square
#5E18A0 #A01A18 #5AA018 #189EA0
split-complementary
#5E18A0 #9EA018 #18A01A
monochromatic
#1F0836 #3F106B #5E18A0 #7D20D5 #9B4EE4

Accessibility & contrast

On white

9.93
#5E18A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5E18A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E18A0
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E18A0#FFFFFF#000000##FFFFFF
##5E18A01.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A4
Deuteranopia (green-blind)
#00429E
Tritanopia (blue-blind)
#4E405F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5e18a0;
/* rgb */ color: rgb(94, 24, 160);
/* oklch */ color: oklch(40.7% 0.196 300.6);
Tailwind
colors: {
  custom: {
    50: '#9360bd',
    500: '#5e18a0',
    950: '#000000',
  },
}
SCSS
$custom: #5e18a0;
$custom-light: #9360bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5e18a0",
  "rgb": {
    "r": 94,
    "g": 24,
    "b": 160
  },
  "hsl": {
    "h": 270.882,
    "s": 73.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.4073,
    "c": 0.19586,
    "h": 300.6
  },
  "luminance": 0.05571
}

Semantic roles & 50–950 ramp

primary
#5E18A0
secondary
#88C64D
accent
#F13791
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5E18A0

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

Preview Lab → · Contrast checker → · Palette generator →

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