#5B1CA0#5B1CA0

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

Color values

HEX#5B1CA0
RGBrgb(91, 28, 160)
HSLhsl(269, 70%, 37%)
HSVhsv(269, 83%, 63%)
CMYKcmyk(43.1%, 82.5%, 0%, 37.3%)
CIE-LABlab(28.36, 52.99, -58.87)
CIE-LCHlch(28.36, 79.21, 312.00°)
OKLaboklab(40.68% 0.0924 -0.1685)
OKLCHoklch(40.68% 0.192 298.7)
XYZxyz(11.0732, 5.5925, 33.7470)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1CA0 #61A01C
analogous
#1C1FA0 #5B1CA0 #9D1CA0
triadic
#5B1CA0 #A05B1C #1CA05B
tetradic
#5B1CA0 #A01C1F #61A01C #1CA09D
square
#5B1CA0 #A01C1F #61A01C #1CA09D
split-complementary
#5B1CA0 #A09D1C #1FA01C
monochromatic
#200A38 #3D136C #5B1CA0 #7925D4 #9855E1

Accessibility & contrast

On white

9.91
#5B1CA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5B1CA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1CA0
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1CA0#FFFFFF#000000##FFFFFF
##5B1CA01.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b1ca0;
/* rgb */ color: rgb(91, 28, 160);
/* oklch */ color: oklch(40.7% 0.192 298.7);
Tailwind
colors: {
  custom: {
    50: '#9161bd',
    500: '#5b1ca0',
    950: '#000000',
  },
}
SCSS
$custom: #5b1ca0;
$custom-light: #9161bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1ca0",
  "rgb": {
    "r": 91,
    "g": 28,
    "b": 160
  },
  "hsl": {
    "h": 268.636,
    "s": 70.213,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40681,
    "c": 0.19217,
    "h": 298.7
  },
  "luminance": 0.05593
}

Semantic roles & 50–950 ramp

primary
#5B1CA0
secondary
#8EC453
accent
#ED3B98
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5B1CA0

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

Preview Lab → · Contrast checker → · Palette generator →

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