#5B26A9#5B26A9

#5B26A9 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.5% C 0.192 H 295.2°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#5B26A9
RGBrgb(91, 38, 169)
HSLhsl(264, 63%, 41%)
HSVhsv(264, 78%, 66%)
CMYKcmyk(46.2%, 77.5%, 0%, 33.7%)
CIE-LABlab(30.58, 51.22, -60.67)
CIE-LCHlch(30.58, 79.40, 310.17°)
OKLaboklab(42.48% 0.0819 -0.1739)
OKLCHoklch(42.48% 0.192 295.2)
XYZxyz(12.1670, 6.4746, 38.1371)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B26A9 #74A926
analogous
#2632A9 #5B26A9 #9C26A9
triadic
#5B26A9 #A95B26 #26A95B
tetradic
#5B26A9 #A92632 #74A926 #26A99C
square
#5B26A9 #A92632 #74A926 #26A99C
split-complementary
#5B26A9 #A99C26 #32A926
monochromatic
#251045 #401B77 #5B26A9 #773AD3 #9A6CDE

Accessibility & contrast

On white

9.15
#5B26A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5B26A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B26A9
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B26A9#FFFFFF#000000##FFFFFF
##5B26A91.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AD
Deuteranopia (green-blind)
#0046A7
Tritanopia (blue-blind)
#454A67
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5b26a9;
/* rgb */ color: rgb(91, 38, 169);
/* oklch */ color: oklch(42.5% 0.192 295.2);
Tailwind
colors: {
  custom: {
    50: '#9167c4',
    500: '#5b26a9',
    950: '#000000',
  },
}
SCSS
$custom: #5b26a9;
$custom-light: #9167c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b26a9",
  "rgb": {
    "r": 91,
    "g": 38,
    "b": 169
  },
  "hsl": {
    "h": 264.275,
    "s": 63.285,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42476,
    "c": 0.19225,
    "h": 295.2
  },
  "luminance": 0.06475
}

Semantic roles & 50–950 ramp

primary
#5B26A9
secondary
#9EC467
accent
#E641A4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B26A9

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

Preview Lab → · Contrast checker → · Palette generator →

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