#5B26A7#5B26A7

#5B26A7 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.3% C 0.190 H 295.7°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#5B26A7
RGBrgb(91, 38, 167)
HSLhsl(265, 63%, 40%)
HSVhsv(265, 77%, 65%)
CMYKcmyk(45.5%, 77.2%, 0%, 34.5%)
CIE-LABlab(30.40, 50.70, -59.76)
CIE-LCHlch(30.40, 78.37, 310.31°)
OKLaboklab(42.3% 0.0825 -0.1712)
OKLCHoklch(42.3% 0.19 295.7)
XYZxyz(11.9807, 6.4001, 37.1558)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B26A7 #72A726
analogous
#2632A7 #5B26A7 #9B26A7
triadic
#5B26A7 #A75B26 #26A75B
tetradic
#5B26A7 #A72632 #72A726 #26A79B
square
#5B26A7 #A72632 #72A726 #26A79B
split-complementary
#5B26A7 #A79B26 #32A726
monochromatic
#250F43 #401B75 #5B26A7 #7738D2 #996ADD

Accessibility & contrast

On white

9.21
#5B26A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5B26A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B26A7
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B26A7#FFFFFF#000000##FFFFFF
##5B26A71.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AB
Deuteranopia (green-blind)
#0046A5
Tritanopia (blue-blind)
#464965
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5b26a7;
/* rgb */ color: rgb(91, 38, 167);
/* oklch */ color: oklch(42.3% 0.190 295.7);
Tailwind
colors: {
  custom: {
    50: '#9166c2',
    500: '#5b26a7',
    950: '#000000',
  },
}
SCSS
$custom: #5b26a7;
$custom-light: #9166c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b26a7",
  "rgb": {
    "r": 91,
    "g": 38,
    "b": 167
  },
  "hsl": {
    "h": 264.651,
    "s": 62.927,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42295,
    "c": 0.19008,
    "h": 295.7
  },
  "luminance": 0.064
}

Semantic roles & 50–950 ramp

primary
#5B26A7
secondary
#9DC365
accent
#E642A3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B26A7

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

Preview Lab → · Contrast checker → · Palette generator →

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