#5E26A2#5E26A2

#5E26A2 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.2% C 0.185 H 298.5°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#5E26A2
RGBrgb(94, 38, 162)
HSLhsl(267, 62%, 39%)
HSVhsv(267, 77%, 64%)
CMYKcmyk(42%, 76.5%, 0%, 36.5%)
CIE-LABlab(30.34, 49.90, -56.83)
CIE-LCHlch(30.34, 75.63, 311.29°)
OKLaboklab(42.2% 0.0884 -0.1625)
OKLCHoklch(42.2% 0.185 298.5)
XYZxyz(11.8291, 6.3744, 34.7826)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E26A2 #6AA226
analogous
#262CA2 #5E26A2 #9C26A2
triadic
#5E26A2 #A25E26 #26A25E
tetradic
#5E26A2 #A2262C #6AA226 #26A29C
square
#5E26A2 #A2262C #6AA226 #26A29C
split-complementary
#5E26A2 #A29C26 #2CA226
monochromatic
#240F3F #411A70 #5E26A2 #7B35D0 #9C67DB

Accessibility & contrast

On white

9.23
#5E26A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E26A2
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E26A2#FFFFFF#000000##FFFFFF
##5E26A21.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#0046A0
Tritanopia (blue-blind)
#4D4763
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5e26a2;
/* rgb */ color: rgb(94, 38, 162);
/* oklch */ color: oklch(42.2% 0.185 298.5);
Tailwind
colors: {
  custom: {
    50: '#9267be',
    500: '#5e26a2',
    950: '#000000',
  },
}
SCSS
$custom: #5e26a2;
$custom-light: #9267be;
$custom-dark: #000000;
JSON
{
  "hex": "#5e26a2",
  "rgb": {
    "r": 94,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 267.097,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.422,
    "c": 0.18499,
    "h": 298.5
  },
  "luminance": 0.06375
}

Semantic roles & 50–950 ramp

primary
#5E26A2
secondary
#96C163
accent
#E5439C
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E26A2

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

Preview Lab → · Contrast checker → · Palette generator →

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