#5B1FA8#5B1FA8

#5B1FA8 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.7% C 0.198 H 296.3°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#5B1FA8
RGBrgb(91, 31, 168)
HSLhsl(266, 69%, 39%)
HSVhsv(266, 82%, 66%)
CMYKcmyk(45.8%, 81.5%, 0%, 34.1%)
CIE-LABlab(29.49, 53.85, -61.85)
CIE-LCHlch(29.49, 82.01, 311.04°)
OKLaboklab(41.69% 0.0876 -0.1773)
OKLCHoklch(41.69% 0.198 296.3)
XYZxyz(11.8704, 6.0310, 37.5769)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1FA8 #6CA81F
analogous
#1F28A8 #5B1FA8 #A01FA8
triadic
#5B1FA8 #A85B1F #1FA85B
tetradic
#5B1FA8 #A81F28 #6CA81F #1FA8A0
square
#5B1FA8 #A81F28 #6CA81F #1FA8A0
split-complementary
#5B1FA8 #A8A01F #28A81F
monochromatic
#230C41 #3F1574 #5B1FA8 #772CD8 #9960E2

Accessibility & contrast

On white

9.52
#5B1FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5B1FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1FA8
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1FA8#FFFFFF#000000##FFFFFF
##5B1FA81.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AC
Deuteranopia (green-blind)
#0044A5
Tritanopia (blue-blind)
#454765
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5b1fa8;
/* rgb */ color: rgb(91, 31, 168);
/* oklch */ color: oklch(41.7% 0.198 296.3);
Tailwind
colors: {
  custom: {
    50: '#9263c3',
    500: '#5b1fa8',
    950: '#000000',
  },
}
SCSS
$custom: #5b1fa8;
$custom-light: #9263c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1fa8",
  "rgb": {
    "r": 91,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 266.277,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.4169,
    "c": 0.19776,
    "h": 296.3
  },
  "luminance": 0.06031
}

Semantic roles & 50–950 ramp

primary
#5B1FA8
secondary
#98C65D
accent
#EC3C9F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B1FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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