#5B26A3#5B26A3

#5B26A3 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.9% C 0.186 H 296.7°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#5B26A3
RGBrgb(91, 38, 163)
HSLhsl(265, 62%, 39%)
HSVhsv(265, 77%, 64%)
CMYKcmyk(44.2%, 76.7%, 0%, 36.1%)
CIE-LABlab(30.05, 49.66, -57.93)
CIE-LCHlch(30.05, 76.30, 310.61°)
OKLaboklab(41.94% 0.0836 -0.1658)
OKLCHoklch(41.94% 0.186 296.7)
XYZxyz(11.6166, 6.2545, 35.2384)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B26A3 #6EA326
analogous
#2630A3 #5B26A3 #9A26A3
triadic
#5B26A3 #A35B26 #26A35B
tetradic
#5B26A3 #A32630 #6EA326 #26A39A
square
#5B26A3 #A32630 #6EA326 #26A39A
split-complementary
#5B26A3 #A39A26 #30A326
monochromatic
#240F40 #3F1A71 #5B26A3 #7736D0 #9968DC

Accessibility & contrast

On white

9.33
#5B26A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5B26A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B26A3
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B26A3#FFFFFF#000000##FFFFFF
##5B26A31.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b26a3;
/* rgb */ color: rgb(91, 38, 163);
/* oklch */ color: oklch(41.9% 0.186 296.7);
Tailwind
colors: {
  custom: {
    50: '#9066bf',
    500: '#5b26a3',
    950: '#000000',
  },
}
SCSS
$custom: #5b26a3;
$custom-light: #9066bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5b26a3",
  "rgb": {
    "r": 91,
    "g": 38,
    "b": 163
  },
  "hsl": {
    "h": 265.44,
    "s": 62.189,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41938,
    "c": 0.18572,
    "h": 296.7
  },
  "luminance": 0.06255
}

Semantic roles & 50–950 ramp

primary
#5B26A3
secondary
#9AC263
accent
#E543A0
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B26A3

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

Preview Lab → · Contrast checker → · Palette generator →

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