#5B1D9F#5B1D9F

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

Color values

HEX#5B1D9F
RGBrgb(91, 29, 159)
HSLhsl(269, 69%, 37%)
HSVhsv(269, 82%, 62%)
CMYKcmyk(42.8%, 81.8%, 0%, 37.6%)
CIE-LABlab(28.40, 52.38, -58.20)
CIE-LCHlch(28.40, 78.30, 311.99°)
OKLaboklab(40.68% 0.092 -0.1666)
OKLCHoklch(40.68% 0.19 298.9)
XYZxyz(11.0102, 5.6059, 33.2961)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1D9F #619F1D
analogous
#1D209F #5B1D9F #9C1D9F
triadic
#5B1D9F #9F5B1D #1D9F5B
tetradic
#5B1D9F #9F1D20 #619F1D #1D9F9C
square
#5B1D9F #9F1D20 #619F1D #1D9F9C
split-complementary
#5B1D9F #9F9C1D #209F1D
monochromatic
#200A37 #3D146B #5B1D9F #7926D3 #9856E0

Accessibility & contrast

On white

9.90
#5B1D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1D9F
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1D9F#FFFFFF#000000##FFFFFF
##5B1D9F1.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.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: #5b1d9f;
/* rgb */ color: rgb(91, 29, 159);
/* oklch */ color: oklch(40.7% 0.190 298.9);
Tailwind
colors: {
  custom: {
    50: '#9162bc',
    500: '#5b1d9f',
    950: '#000000',
  },
}
SCSS
$custom: #5b1d9f;
$custom-light: #9162bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1d9f",
  "rgb": {
    "r": 91,
    "g": 29,
    "b": 159
  },
  "hsl": {
    "h": 268.615,
    "s": 69.149,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40677,
    "c": 0.19028,
    "h": 298.9
  },
  "luminance": 0.05606
}

Semantic roles & 50–950 ramp

primary
#5B1D9F
secondary
#8EC454
accent
#EC3C98
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5B1D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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