#5B1FA0#5B1FA0

#5B1FA0 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 41.0% C 0.189 H 298.4°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#5B1FA0
RGBrgb(91, 31, 160)
HSLhsl(268, 68%, 37%)
HSVhsv(268, 81%, 63%)
CMYKcmyk(43.1%, 80.6%, 0%, 37.3%)
CIE-LABlab(28.75, 51.85, -58.22)
CIE-LCHlch(28.75, 77.97, 311.69°)
OKLaboklab(40.95% 0.0901 -0.1667)
OKLCHoklch(40.95% 0.189 298.4)
XYZxyz(11.1479, 5.7420, 33.7719)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1FA0 #64A01F
analogous
#1F24A0 #5B1FA0 #9B1FA0
triadic
#5B1FA0 #A05B1F #1FA05B
tetradic
#5B1FA0 #A01F24 #64A01F #1FA09B
square
#5B1FA0 #A01F24 #64A01F #1FA09B
split-complementary
#5B1FA0 #A09B1F #24A01F
monochromatic
#210B39 #3E156D #5B1FA0 #7829D3 #985ADF

Accessibility & contrast

On white

9.77
#5B1FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5B1FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1FA0
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1FA0#FFFFFF#000000##FFFFFF
##5B1FA01.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A4
Deuteranopia (green-blind)
#00429E
Tritanopia (blue-blind)
#494360
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5b1fa0;
/* rgb */ color: rgb(91, 31, 160);
/* oklch */ color: oklch(41.0% 0.189 298.4);
Tailwind
colors: {
  custom: {
    50: '#9163bd',
    500: '#5b1fa0',
    950: '#000000',
  },
}
SCSS
$custom: #5b1fa0;
$custom-light: #9163bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1fa0",
  "rgb": {
    "r": 91,
    "g": 31,
    "b": 160
  },
  "hsl": {
    "h": 267.907,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40952,
    "c": 0.18948,
    "h": 298.4
  },
  "luminance": 0.05742
}

Semantic roles & 50–950 ramp

primary
#5B1FA0
secondary
#91C358
accent
#EA3D9A
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B1FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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