#5B18A1#5B18A1

#5B18A1 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.4% C 0.196 H 298.8°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#5B18A1
RGBrgb(91, 24, 161)
HSLhsl(269, 74%, 36%)
HSVhsv(269, 85%, 63%)
CMYKcmyk(43.5%, 85.1%, 0%, 36.9%)
CIE-LABlab(27.98, 54.62, -60.10)
CIE-LCHlch(27.98, 81.21, 312.27°)
OKLaboklab(40.45% 0.0947 -0.1721)
OKLCHoklch(40.45% 0.196 298.8)
XYZxyz(11.0724, 5.4505, 34.1800)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B18A1 #5EA118
analogous
#181AA1 #5B18A1 #A018A1
triadic
#5B18A1 #A15B18 #18A15B
tetradic
#5B18A1 #A1181A #5EA118 #18A1A0
square
#5B18A1 #A1181A #5EA118 #18A1A0
split-complementary
#5B18A1 #A1A018 #1AA118
monochromatic
#1F0836 #3D106C #5B18A1 #7920D6 #984FE5

Accessibility & contrast

On white

10.05
#5B18A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B18A1
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B18A1#FFFFFF#000000##FFFFFF
##5B18A11.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A5
Deuteranopia (green-blind)
#00419F
Tritanopia (blue-blind)
#49415F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5b18a1;
/* rgb */ color: rgb(91, 24, 161);
/* oklch */ color: oklch(40.4% 0.196 298.8);
Tailwind
colors: {
  custom: {
    50: '#9160be',
    500: '#5b18a1',
    950: '#000000',
  },
}
SCSS
$custom: #5b18a1;
$custom-light: #9160be;
$custom-dark: #000000;
JSON
{
  "hex": "#5b18a1",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 269.343,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40448,
    "c": 0.19642,
    "h": 298.8
  },
  "luminance": 0.05451
}

Semantic roles & 50–950 ramp

primary
#5B18A1
secondary
#8CC74E
accent
#F13796
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5B18A1

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

Preview Lab → · Contrast checker → · Palette generator →

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