#5B26BD#5B26BD

#5B26BD is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.3% C 0.214 H 290.8°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#5B26BD
RGBrgb(91, 38, 189)
HSLhsl(261, 67%, 45%)
HSVhsv(261, 80%, 74%)
CMYKcmyk(51.9%, 79.9%, 0%, 25.9%)
CIE-LABlab(32.44, 56.44, -69.52)
CIE-LCHlch(32.44, 89.55, 309.07°)
OKLaboklab(44.34% 0.0759 -0.1998)
OKLCHoklch(44.34% 0.214 290.8)
XYZxyz(14.1902, 7.2839, 48.7925)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B26BD #88BD26
analogous
#263CBD #5B26BD #A726BD
triadic
#5B26BD #BD5B26 #26BD5B
tetradic
#5B26BD #BD263C #88BD26 #26BDA7
square
#5B26BD #BD263C #88BD26 #26BDA7
split-complementary
#5B26BD #BDA726 #3CBD26
monochromatic
#2A1257 #421C8A #5B26BD #7A46DA #9F79E4

Accessibility & contrast

On white

8.55
#5B26BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#5B26BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B26BD
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B26BD#FFFFFF#000000##FFFFFF
##5B26BD1.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC1
Deuteranopia (green-blind)
#0049BA
Tritanopia (blue-blind)
#385272
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5b26bd;
/* rgb */ color: rgb(91, 38, 189);
/* oklch */ color: oklch(44.3% 0.214 290.8);
Tailwind
colors: {
  custom: {
    50: '#9468d2',
    500: '#5b26bd',
    950: '#000000',
  },
}
SCSS
$custom: #5b26bd;
$custom-light: #9468d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b26bd",
  "rgb": {
    "r": 91,
    "g": 38,
    "b": 189
  },
  "hsl": {
    "h": 261.06,
    "s": 66.52,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44341,
    "c": 0.21375,
    "h": 290.8
  },
  "luminance": 0.07284
}

Semantic roles & 50–950 ramp

primary
#5B26BD
secondary
#ADCC73
accent
#E93EAD
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #5B26BD

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

Preview Lab → · Contrast checker → · Palette generator →

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