#5E26A8#5E26A8

#5E26A8 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.7% C 0.191 H 297.0°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#5E26A8
RGBrgb(94, 38, 168)
HSLhsl(266, 63%, 40%)
HSVhsv(266, 77%, 66%)
CMYKcmyk(44%, 77.4%, 0%, 34.1%)
CIE-LABlab(30.86, 51.43, -59.59)
CIE-LCHlch(30.86, 78.72, 310.80°)
OKLaboklab(42.73% 0.0868 -0.1706)
OKLCHoklch(42.73% 0.191 297)
XYZxyz(12.3752, 6.5928, 37.6587)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E26A8 #70A826
analogous
#262FA8 #5E26A8 #9F26A8
triadic
#5E26A8 #A85E26 #26A85E
tetradic
#5E26A8 #A8262F #70A826 #26A89F
square
#5E26A8 #A8262F #70A826 #26A89F
split-complementary
#5E26A8 #A89F26 #2FA826
monochromatic
#260F44 #421B76 #5E26A8 #7B39D2 #9C6BDE

Accessibility & contrast

On white

9.06
#5E26A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5E26A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E26A8
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E26A8#FFFFFF#000000##FFFFFF
##5E26A81.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AC
Deuteranopia (green-blind)
#0047A6
Tritanopia (blue-blind)
#4A4966
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5e26a8;
/* rgb */ color: rgb(94, 38, 168);
/* oklch */ color: oklch(42.7% 0.191 297.0);
Tailwind
colors: {
  custom: {
    50: '#9367c3',
    500: '#5e26a8',
    950: '#000000',
  },
}
SCSS
$custom: #5e26a8;
$custom-light: #9367c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e26a8",
  "rgb": {
    "r": 94,
    "g": 38,
    "b": 168
  },
  "hsl": {
    "h": 265.846,
    "s": 63.107,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42728,
    "c": 0.19143,
    "h": 297
  },
  "luminance": 0.06593
}

Semantic roles & 50–950 ramp

primary
#5E26A8
secondary
#9BC466
accent
#E6429F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5E26A8

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

Preview Lab → · Contrast checker → · Palette generator →

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