#5B26B0#5B26B0

#5B26B0 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 43.1% C 0.200 H 293.6°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#5B26B0
RGBrgb(91, 38, 176)
HSLhsl(263, 64%, 42%)
HSVhsv(263, 78%, 69%)
CMYKcmyk(48.3%, 78.4%, 0%, 31%)
CIE-LABlab(31.22, 53.04, -63.82)
CIE-LCHlch(31.22, 82.98, 309.73°)
OKLaboklab(43.12% 0.0799 -0.1831)
OKLCHoklch(43.12% 0.2 293.6)
XYZxyz(12.8418, 6.7445, 41.6911)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B26B0 #7BB026
analogous
#2636B0 #5B26B0 #A026B0
triadic
#5B26B0 #B05B26 #26B05B
tetradic
#5B26B0 #B02636 #7BB026 #26B0A0
square
#5B26B0 #B02636 #7BB026 #26B0A0
split-complementary
#5B26B0 #B0A026 #36B026
monochromatic
#27104B #411B7E #5B26B0 #783ED5 #9B70E0

Accessibility & contrast

On white

8.94
#5B26B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5B26B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B26B0
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B26B0#FFFFFF#000000##FFFFFF
##5B26B01.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB4
Deuteranopia (green-blind)
#0047AD
Tritanopia (blue-blind)
#414D6B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b26b0;
/* rgb */ color: rgb(91, 38, 176);
/* oklch */ color: oklch(43.1% 0.200 293.6);
Tailwind
colors: {
  custom: {
    50: '#9267c9',
    500: '#5b26b0',
    950: '#000000',
  },
}
SCSS
$custom: #5b26b0;
$custom-light: #9267c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b26b0",
  "rgb": {
    "r": 91,
    "g": 38,
    "b": 176
  },
  "hsl": {
    "h": 263.043,
    "s": 64.486,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43117,
    "c": 0.19981,
    "h": 293.6
  },
  "luminance": 0.06745
}

Semantic roles & 50–950 ramp

primary
#5B26B0
secondary
#A4C76B
accent
#E740A7
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B26B0

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

Preview Lab → · Contrast checker → · Palette generator →

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