#5B26A2#5B26A2

#5B26A2 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.8% C 0.185 H 297.0°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#5B26A2
RGBrgb(91, 38, 162)
HSLhsl(266, 62%, 39%)
HSVhsv(266, 77%, 64%)
CMYKcmyk(43.8%, 76.5%, 0%, 36.5%)
CIE-LABlab(29.96, 49.40, -57.46)
CIE-LCHlch(29.96, 75.78, 310.69°)
OKLaboklab(41.85% 0.0838 -0.1645)
OKLCHoklch(41.85% 0.185 297)
XYZxyz(11.5274, 6.2188, 34.7684)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B26A2 #6DA226
analogous
#262FA2 #5B26A2 #9926A2
triadic
#5B26A2 #A25B26 #26A25B
tetradic
#5B26A2 #A2262F #6DA226 #26A299
square
#5B26A2 #A2262F #6DA226 #26A299
split-complementary
#5B26A2 #A29926 #2FA226
monochromatic
#230F3F #3F1A70 #5B26A2 #7735D0 #9967DB

Accessibility & contrast

On white

9.36
#5B26A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5B26A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B26A2
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B26A2#FFFFFF#000000##FFFFFF
##5B26A21.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#484763
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5b26a2;
/* rgb */ color: rgb(91, 38, 162);
/* oklch */ color: oklch(41.8% 0.185 297.0);
Tailwind
colors: {
  custom: {
    50: '#9066bf',
    500: '#5b26a2',
    950: '#000000',
  },
}
SCSS
$custom: #5b26a2;
$custom-light: #9066bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5b26a2",
  "rgb": {
    "r": 91,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 265.645,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41849,
    "c": 0.18464,
    "h": 297
  },
  "luminance": 0.06219
}

Semantic roles & 50–950 ramp

primary
#5B26A2
secondary
#99C163
accent
#E543A0
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B26A2

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

Preview Lab → · Contrast checker → · Palette generator →

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