#5B26AD#5B26AD

#5B26AD is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.8% C 0.197 H 294.3°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#5B26AD
RGBrgb(91, 38, 173)
HSLhsl(264, 64%, 41%)
HSVhsv(264, 78%, 68%)
CMYKcmyk(47.4%, 78%, 0%, 32.2%)
CIE-LABlab(30.94, 52.26, -62.48)
CIE-LCHlch(30.94, 81.45, 309.91°)
OKLaboklab(42.84% 0.0808 -0.1792)
OKLCHoklch(42.84% 0.197 294.3)
XYZxyz(12.5483, 6.6271, 40.1451)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B26AD #78AD26
analogous
#2634AD #5B26AD #9F26AD
triadic
#5B26AD #AD5B26 #26AD5B
tetradic
#5B26AD #AD2634 #78AD26 #26AD9F
square
#5B26AD #AD2634 #78AD26 #26AD9F
split-complementary
#5B26AD #AD9F26 #34AD26
monochromatic
#261049 #411B7B #5B26AD #783CD4 #9B6EDF

Accessibility & contrast

On white

9.03
#5B26AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5B26AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B26AD
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B26AD#FFFFFF#000000##FFFFFF
##5B26AD1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB1
Deuteranopia (green-blind)
#0047AA
Tritanopia (blue-blind)
#424C69
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b26ad;
/* rgb */ color: rgb(91, 38, 173);
/* oklch */ color: oklch(42.8% 0.197 294.3);
Tailwind
colors: {
  custom: {
    50: '#9267c7',
    500: '#5b26ad',
    950: '#000000',
  },
}
SCSS
$custom: #5b26ad;
$custom-light: #9267c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b26ad",
  "rgb": {
    "r": 91,
    "g": 38,
    "b": 173
  },
  "hsl": {
    "h": 263.556,
    "s": 63.981,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42841,
    "c": 0.19658,
    "h": 294.3
  },
  "luminance": 0.06628
}

Semantic roles & 50–950 ramp

primary
#5B26AD
secondary
#A1C669
accent
#E741A6
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B26AD

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

Preview Lab → · Contrast checker → · Palette generator →

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