#5B26A8#5B26A8

#5B26A8 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.4% C 0.191 H 295.5°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#5B26A8
RGBrgb(91, 38, 168)
HSLhsl(264, 63%, 40%)
HSVhsv(264, 77%, 66%)
CMYKcmyk(45.8%, 77.4%, 0%, 34.1%)
CIE-LABlab(30.49, 50.96, -60.22)
CIE-LCHlch(30.49, 78.88, 310.24°)
OKLaboklab(42.39% 0.0822 -0.1726)
OKLCHoklch(42.39% 0.191 295.5)
XYZxyz(12.0735, 6.4372, 37.6446)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B26A8 #73A826
analogous
#2632A8 #5B26A8 #9C26A8
triadic
#5B26A8 #A85B26 #26A85B
tetradic
#5B26A8 #A82632 #73A826 #26A89C
square
#5B26A8 #A82632 #73A826 #26A89C
split-complementary
#5B26A8 #A89C26 #32A826
monochromatic
#250F44 #401B76 #5B26A8 #7739D2 #9A6BDE

Accessibility & contrast

On white

9.18
#5B26A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5B26A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B26A8
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B26A8#FFFFFF#000000##FFFFFF
##5B26A81.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AC
Deuteranopia (green-blind)
#0046A6
Tritanopia (blue-blind)
#454A66
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5b26a8;
/* rgb */ color: rgb(91, 38, 168);
/* oklch */ color: oklch(42.4% 0.191 295.5);
Tailwind
colors: {
  custom: {
    50: '#9167c3',
    500: '#5b26a8',
    950: '#000000',
  },
}
SCSS
$custom: #5b26a8;
$custom-light: #9167c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b26a8",
  "rgb": {
    "r": 91,
    "g": 38,
    "b": 168
  },
  "hsl": {
    "h": 264.462,
    "s": 63.107,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42386,
    "c": 0.19116,
    "h": 295.5
  },
  "luminance": 0.06438
}

Semantic roles & 50–950 ramp

primary
#5B26A8
secondary
#9EC466
accent
#E642A3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B26A8

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

Preview Lab → · Contrast checker → · Palette generator →

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