#5B1F9E#5B1F9E

#5B1F9E is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.8% C 0.187 H 299.0°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#5B1F9E
RGBrgb(91, 31, 158)
HSLhsl(268, 67%, 37%)
HSVhsv(268, 80%, 62%)
CMYKcmyk(42.4%, 80.4%, 0%, 38%)
CIE-LABlab(28.57, 51.36, -57.30)
CIE-LCHlch(28.57, 76.95, 311.87°)
OKLaboklab(40.77% 0.0908 -0.164)
OKLCHoklch(40.77% 0.187 299)
XYZxyz(10.9743, 5.6726, 32.8579)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1F9E #629E1F
analogous
#1F239E #5B1F9E #9A1F9E
triadic
#5B1F9E #9E5B1F #1F9E5B
tetradic
#5B1F9E #9E1F23 #629E1F #1F9E9A
square
#5B1F9E #9E1F23 #629E1F #1F9E9A
split-complementary
#5B1F9E #9E9A1F #239E1F
monochromatic
#200B38 #3E156B #5B1F9E #7829D1 #9859DE

Accessibility & contrast

On white

9.84
#5B1F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5B1F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1F9E
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1F9E#FFFFFF#000000##FFFFFF
##5B1F9E1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b1f9e;
/* rgb */ color: rgb(91, 31, 158);
/* oklch */ color: oklch(40.8% 0.187 299.0);
Tailwind
colors: {
  custom: {
    50: '#9063bc',
    500: '#5b1f9e',
    950: '#000000',
  },
}
SCSS
$custom: #5b1f9e;
$custom-light: #9063bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1f9e",
  "rgb": {
    "r": 91,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 268.346,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40771,
    "c": 0.18741,
    "h": 299
  },
  "luminance": 0.05673
}

Semantic roles & 50–950 ramp

primary
#5B1F9E
secondary
#8FC256
accent
#EA3E99
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B1F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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