#5E26A5#5E26A5

#5E26A5 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.5% C 0.188 H 297.7°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#5E26A5
RGBrgb(94, 38, 165)
HSLhsl(266, 63%, 40%)
HSVhsv(266, 77%, 65%)
CMYKcmyk(43%, 77%, 0%, 35.3%)
CIE-LABlab(30.60, 50.67, -58.22)
CIE-LCHlch(30.60, 77.18, 311.03°)
OKLaboklab(42.46% 0.0876 -0.1666)
OKLCHoklch(42.46% 0.188 297.7)
XYZxyz(12.0990, 6.4823, 36.2038)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E26A5 #6DA526
analogous
#262DA5 #5E26A5 #9E26A5
triadic
#5E26A5 #A55E26 #26A55E
tetradic
#5E26A5 #A5262D #6DA526 #26A59E
square
#5E26A5 #A5262D #6DA526 #26A59E
split-complementary
#5E26A5 #A59E26 #2DA526
monochromatic
#250F42 #421B73 #5E26A5 #7B37D1 #9C69DC

Accessibility & contrast

On white

9.14
#5E26A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5E26A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E26A5
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E26A5#FFFFFF#000000##FFFFFF
##5E26A51.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A9
Deuteranopia (green-blind)
#0047A3
Tritanopia (blue-blind)
#4C4864
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5e26a5;
/* rgb */ color: rgb(94, 38, 165);
/* oklch */ color: oklch(42.5% 0.188 297.7);
Tailwind
colors: {
  custom: {
    50: '#9367c1',
    500: '#5e26a5',
    950: '#000000',
  },
}
SCSS
$custom: #5e26a5;
$custom-light: #9367c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e26a5",
  "rgb": {
    "r": 94,
    "g": 38,
    "b": 165
  },
  "hsl": {
    "h": 266.457,
    "s": 62.562,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42463,
    "c": 0.18821,
    "h": 297.7
  },
  "luminance": 0.06483
}

Semantic roles & 50–950 ramp

primary
#5E26A5
secondary
#99C364
accent
#E6429E
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E26A5

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

Preview Lab → · Contrast checker → · Palette generator →

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