#5E26A7#5E26A7

#5E26A7 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.190 H 297.2°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#5E26A7
RGBrgb(94, 38, 167)
HSLhsl(266, 63%, 40%)
HSVhsv(266, 77%, 65%)
CMYKcmyk(43.7%, 77.2%, 0%, 34.5%)
CIE-LABlab(30.77, 51.18, -59.14)
CIE-LCHlch(30.77, 78.20, 310.87°)
OKLaboklab(42.64% 0.087 -0.1693)
OKLCHoklch(42.64% 0.19 297.2)
XYZxyz(12.2824, 6.5557, 37.1700)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E26A7 #6FA726
analogous
#262EA7 #5E26A7 #9F26A7
triadic
#5E26A7 #A75E26 #26A75E
tetradic
#5E26A7 #A7262E #6FA726 #26A79F
square
#5E26A7 #A7262E #6FA726 #26A79F
split-complementary
#5E26A7 #A79F26 #2EA726
monochromatic
#260F43 #421B75 #5E26A7 #7B38D2 #9C6ADD

Accessibility & contrast

On white

9.09
#5E26A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5E26A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E26A7
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E26A7#FFFFFF#000000##FFFFFF
##5E26A71.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AB
Deuteranopia (green-blind)
#0047A5
Tritanopia (blue-blind)
#4B4965
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5e26a7;
/* rgb */ color: rgb(94, 38, 167);
/* oklch */ color: oklch(42.6% 0.190 297.2);
Tailwind
colors: {
  custom: {
    50: '#9367c2',
    500: '#5e26a7',
    950: '#000000',
  },
}
SCSS
$custom: #5e26a7;
$custom-light: #9367c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e26a7",
  "rgb": {
    "r": 94,
    "g": 38,
    "b": 167
  },
  "hsl": {
    "h": 266.047,
    "s": 62.927,
    "l": 40.196
  },
  "oklch": {
    "l": 0.4264,
    "c": 0.19036,
    "h": 297.2
  },
  "luminance": 0.06556
}

Semantic roles & 50–950 ramp

primary
#5E26A7
secondary
#9BC365
accent
#E6429F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E26A7

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

Preview Lab → · Contrast checker → · Palette generator →

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