#5E26B1#5E26B1

#5E26B1 is a dark, highly saturated violet. Relative luminance 0.069; OKLCH L 43.5% C 0.201 H 294.7°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#5E26B1
RGBrgb(94, 38, 177)
HSLhsl(264, 65%, 42%)
HSVhsv(264, 79%, 69%)
CMYKcmyk(46.9%, 78.5%, 0%, 30.6%)
CIE-LABlab(31.67, 53.74, -63.66)
CIE-LCHlch(31.67, 83.31, 310.17°)
OKLaboklab(43.54% 0.0842 -0.1826)
OKLCHoklch(43.54% 0.201 294.7)
XYZxyz(13.2429, 6.9399, 42.2282)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E26B1 #79B126
analogous
#2633B1 #5E26B1 #A426B1
triadic
#5E26B1 #B15E26 #26B15E
tetradic
#5E26B1 #B12633 #79B126 #26B1A4
square
#5E26B1 #B12633 #79B126 #26B1A4
split-complementary
#5E26B1 #B1A426 #33B126
monochromatic
#28104C #431B7F #5E26B1 #7B3FD6 #9E71E0

Accessibility & contrast

On white

8.79
#5E26B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5E26B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E26B1
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E26B1#FFFFFF#000000##FFFFFF
##5E26B11.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB5
Deuteranopia (green-blind)
#0048AE
Tritanopia (blue-blind)
#464D6B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5e26b1;
/* rgb */ color: rgb(94, 38, 177);
/* oklch */ color: oklch(43.5% 0.201 294.7);
Tailwind
colors: {
  custom: {
    50: '#9467c9',
    500: '#5e26b1',
    950: '#000000',
  },
}
SCSS
$custom: #5e26b1;
$custom-light: #9467c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e26b1",
  "rgb": {
    "r": 94,
    "g": 38,
    "b": 177
  },
  "hsl": {
    "h": 264.173,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.43541,
    "c": 0.20105,
    "h": 294.7
  },
  "luminance": 0.0694
}

Semantic roles & 50–950 ramp

primary
#5E26B1
secondary
#A2C76B
accent
#E840A4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5E26B1

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

Preview Lab → · Contrast checker → · Palette generator →

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