#5B1E9F#5B1E9F

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

Color values

HEX#5B1E9F
RGBrgb(91, 30, 159)
HSLhsl(268, 68%, 37%)
HSVhsv(268, 81%, 62%)
CMYKcmyk(42.8%, 81.1%, 0%, 37.6%)
CIE-LABlab(28.53, 52.00, -57.98)
CIE-LCHlch(28.53, 77.88, 311.88°)
OKLaboklab(40.77% 0.0912 -0.166)
OKLCHoklch(40.77% 0.189 298.8)
XYZxyz(11.0351, 5.6557, 33.3044)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1E9F #629F1E
analogous
#1E229F #5B1E9F #9C1E9F
triadic
#5B1E9F #9F5B1E #1E9F5B
tetradic
#5B1E9F #9F1E22 #629F1E #1E9F9C
square
#5B1E9F #9F1E22 #629F1E #1E9F9C
split-complementary
#5B1E9F #9F9C1E #229F1E
monochromatic
#200B38 #3E146C #5B1E9F #7828D2 #9858DF

Accessibility & contrast

On white

9.85
#5B1E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1E9F
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1E9F#FFFFFF#000000##FFFFFF
##5B1E9F1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b1e9f;
/* rgb */ color: rgb(91, 30, 159);
/* oklch */ color: oklch(40.8% 0.189 298.8);
Tailwind
colors: {
  custom: {
    50: '#9062bc',
    500: '#5b1e9f',
    950: '#000000',
  },
}
SCSS
$custom: #5b1e9f;
$custom-light: #9062bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1e9f",
  "rgb": {
    "r": 91,
    "g": 30,
    "b": 159
  },
  "hsl": {
    "h": 268.372,
    "s": 68.254,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40768,
    "c": 0.18937,
    "h": 298.8
  },
  "luminance": 0.05656
}

Semantic roles & 50–950 ramp

primary
#5B1E9F
secondary
#8FC356
accent
#EB3D99
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B1E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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