#5B26A6#5B26A6

#5B26A6 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.2% C 0.189 H 296.0°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#5B26A6
RGBrgb(91, 38, 166)
HSLhsl(265, 63%, 40%)
HSVhsv(265, 77%, 65%)
CMYKcmyk(45.2%, 77.1%, 0%, 34.9%)
CIE-LABlab(30.31, 50.44, -59.30)
CIE-LCHlch(30.31, 77.85, 310.38°)
OKLaboklab(42.21% 0.0828 -0.1699)
OKLCHoklch(42.21% 0.189 296)
XYZxyz(11.8886, 6.3633, 36.6709)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B26A6 #71A626
analogous
#2631A6 #5B26A6 #9B26A6
triadic
#5B26A6 #A65B26 #26A65B
tetradic
#5B26A6 #A62631 #71A626 #26A69B
square
#5B26A6 #A62631 #71A626 #26A69B
split-complementary
#5B26A6 #A69B26 #31A626
monochromatic
#240F42 #401B74 #5B26A6 #7738D1 #996ADD

Accessibility & contrast

On white

9.24
#5B26A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5B26A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B26A6
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B26A6#FFFFFF#000000##FFFFFF
##5B26A61.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#0046A4
Tritanopia (blue-blind)
#464965
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5b26a6;
/* rgb */ color: rgb(91, 38, 166);
/* oklch */ color: oklch(42.2% 0.189 296.0);
Tailwind
colors: {
  custom: {
    50: '#9166c1',
    500: '#5b26a6',
    950: '#000000',
  },
}
SCSS
$custom: #5b26a6;
$custom-light: #9166c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b26a6",
  "rgb": {
    "r": 91,
    "g": 38,
    "b": 166
  },
  "hsl": {
    "h": 264.844,
    "s": 62.745,
    "l": 40
  },
  "oklch": {
    "l": 0.42206,
    "c": 0.18899,
    "h": 296
  },
  "luminance": 0.06364
}

Semantic roles & 50–950 ramp

primary
#5B26A6
secondary
#9CC365
accent
#E642A2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5B26A6

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

Preview Lab → · Contrast checker → · Palette generator →

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