#5B26A5#5B26A5

#5B26A5 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.1% C 0.188 H 296.2°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#5B26A5
RGBrgb(91, 38, 165)
HSLhsl(265, 63%, 40%)
HSVhsv(265, 77%, 65%)
CMYKcmyk(44.8%, 77%, 0%, 35.3%)
CIE-LABlab(30.22, 50.18, -58.85)
CIE-LCHlch(30.22, 77.33, 310.45°)
OKLaboklab(42.12% 0.0831 -0.1685)
OKLCHoklch(42.12% 0.188 296.2)
XYZxyz(11.7972, 6.3267, 36.1896)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B26A5 #70A526
analogous
#2631A5 #5B26A5 #9A26A5
triadic
#5B26A5 #A55B26 #26A55B
tetradic
#5B26A5 #A52631 #70A526 #26A59A
square
#5B26A5 #A52631 #70A526 #26A59A
split-complementary
#5B26A5 #A59A26 #31A526
monochromatic
#240F42 #401B73 #5B26A5 #7737D1 #9969DC

Accessibility & contrast

On white

9.27
#5B26A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5B26A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B26A5
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B26A5#FFFFFF#000000##FFFFFF
##5B26A51.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A9
Deuteranopia (green-blind)
#0045A3
Tritanopia (blue-blind)
#474864
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5b26a5;
/* rgb */ color: rgb(91, 38, 165);
/* oklch */ color: oklch(42.1% 0.188 296.2);
Tailwind
colors: {
  custom: {
    50: '#9166c1',
    500: '#5b26a5',
    950: '#000000',
  },
}
SCSS
$custom: #5b26a5;
$custom-light: #9166c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b26a5",
  "rgb": {
    "r": 91,
    "g": 38,
    "b": 165
  },
  "hsl": {
    "h": 265.039,
    "s": 62.562,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42116,
    "c": 0.1879,
    "h": 296.2
  },
  "luminance": 0.06327
}

Semantic roles & 50–950 ramp

primary
#5B26A5
secondary
#9BC364
accent
#E642A1
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5B26A5

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

Preview Lab → · Contrast checker → · Palette generator →

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