#5B26AF#5B26AF

#5B26AF is a dark, vivid violet. Relative luminance 0.067; OKLCH L 43.0% C 0.199 H 293.8°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#5B26AF
RGBrgb(91, 38, 175)
HSLhsl(263, 64%, 42%)
HSVhsv(263, 78%, 69%)
CMYKcmyk(48%, 78.3%, 0%, 31.4%)
CIE-LABlab(31.13, 52.78, -63.37)
CIE-LCHlch(31.13, 82.47, 309.79°)
OKLaboklab(43.03% 0.0802 -0.1818)
OKLCHoklch(43.03% 0.199 293.8)
XYZxyz(12.7432, 6.7051, 41.1719)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B26AF #7AAF26
analogous
#2635AF #5B26AF #A026AF
triadic
#5B26AF #AF5B26 #26AF5B
tetradic
#5B26AF #AF2635 #7AAF26 #26AFA0
square
#5B26AF #AF2635 #7AAF26 #26AFA0
split-complementary
#5B26AF #AFA026 #35AF26
monochromatic
#27104A #411B7D #5B26AF #783DD5 #9B70E0

Accessibility & contrast

On white

8.97
#5B26AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5B26AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B26AF
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B26AF#FFFFFF#000000##FFFFFF
##5B26AF1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB3
Deuteranopia (green-blind)
#0047AC
Tritanopia (blue-blind)
#414C6A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b26af;
/* rgb */ color: rgb(91, 38, 175);
/* oklch */ color: oklch(43.0% 0.199 293.8);
Tailwind
colors: {
  custom: {
    50: '#9267c8',
    500: '#5b26af',
    950: '#000000',
  },
}
SCSS
$custom: #5b26af;
$custom-light: #9267c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b26af",
  "rgb": {
    "r": 91,
    "g": 38,
    "b": 175
  },
  "hsl": {
    "h": 263.212,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43025,
    "c": 0.19873,
    "h": 293.8
  },
  "luminance": 0.06706
}

Semantic roles & 50–950 ramp

primary
#5B26AF
secondary
#A3C76A
accent
#E740A7
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B26AF

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

Preview Lab → · Contrast checker → · Palette generator →

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