#5B1EB3#5B1EB3

#5B1EB3 is a dark, highly saturated violet. Relative luminance 0.064; OKLCH L 42.6% C 0.210 H 293.7°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#5B1EB3
RGBrgb(91, 30, 179)
HSLhsl(265, 71%, 41%)
HSVhsv(265, 83%, 70%)
CMYKcmyk(49.2%, 83.2%, 0%, 29.8%)
CIE-LABlab(30.42, 56.97, -66.93)
CIE-LCHlch(30.42, 87.89, 310.40°)
OKLaboklab(42.65% 0.0844 -0.1922)
OKLCHoklch(42.65% 0.21 293.7)
XYZxyz(12.9131, 6.4069, 43.1954)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1EB3 #76B31E
analogous
#1E2BB3 #5B1EB3 #A51EB3
triadic
#5B1EB3 #B35B1E #1EB35B
tetradic
#5B1EB3 #B31E2B #76B31E #1EB3A5
square
#5B1EB3 #B31E2B #76B31E #1EB3A5
split-complementary
#5B1EB3 #B3A51E #2BB31E
monochromatic
#260C4A #40157F #5B1EB3 #7832DD #9A66E5

Accessibility & contrast

On white

9.20
#5B1EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5B1EB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1EB3
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1EB3#FFFFFF#000000##FFFFFF
##5B1EB31.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B7
Deuteranopia (green-blind)
#0045B0
Tritanopia (blue-blind)
#3F4B6B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5b1eb3;
/* rgb */ color: rgb(91, 30, 179);
/* oklch */ color: oklch(42.6% 0.210 293.7);
Tailwind
colors: {
  custom: {
    50: '#9363cb',
    500: '#5b1eb3',
    950: '#000000',
  },
}
SCSS
$custom: #5b1eb3;
$custom-light: #9363cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1eb3",
  "rgb": {
    "r": 91,
    "g": 30,
    "b": 179
  },
  "hsl": {
    "h": 264.564,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42648,
    "c": 0.20988,
    "h": 293.7
  },
  "luminance": 0.06407
}

Semantic roles & 50–950 ramp

primary
#5B1EB3
secondary
#A0CB62
accent
#EE3AA4
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B1EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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