#5E2EB6#5E2EB6

#5E2EB6 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.9% C 0.198 H 292.6°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#5E2EB6
RGBrgb(94, 46, 182)
HSLhsl(261, 60%, 45%)
HSVhsv(261, 75%, 71%)
CMYKcmyk(48.4%, 74.7%, 0%, 28.6%)
CIE-LABlab(33.37, 51.46, -63.85)
CIE-LCHlch(33.37, 82.00, 308.87°)
OKLaboklab(44.87% 0.0764 -0.1832)
OKLCHoklch(44.87% 0.198 292.6)
XYZxyz(14.0342, 7.7106, 44.9957)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2EB6 #86B62E
analogous
#2E42B6 #5E2EB6 #A22EB6
triadic
#5E2EB6 #B65E2E #2EB65E
tetradic
#5E2EB6 #B62E42 #86B62E #2EB6A2
square
#5E2EB6 #B62E42 #86B62E #2EB6A2
split-complementary
#5E2EB6 #B6A22E #42B62E
monochromatic
#2C1554 #452285 #5E2EB6 #7D4FD2 #A180DF

Accessibility & contrast

On white

8.26
#5E2EB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5E2EB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2EB6
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2EB6#FFFFFF#000000##FFFFFF
##5E2EB61.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BA
Deuteranopia (green-blind)
#004CB3
Tritanopia (blue-blind)
#425370
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5e2eb6;
/* rgb */ color: rgb(94, 46, 182);
/* oklch */ color: oklch(44.9% 0.198 292.6);
Tailwind
colors: {
  custom: {
    50: '#946ccd',
    500: '#5e2eb6',
    950: '#000000',
  },
}
SCSS
$custom: #5e2eb6;
$custom-light: #946ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2eb6",
  "rgb": {
    "r": 94,
    "g": 46,
    "b": 182
  },
  "hsl": {
    "h": 261.176,
    "s": 59.649,
    "l": 44.706
  },
  "oklch": {
    "l": 0.44871,
    "c": 0.19846,
    "h": 292.6
  },
  "luminance": 0.07711
}

Semantic roles & 50–950 ramp

primary
#5E2EB6
secondary
#ACC878
accent
#E345AB
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5E2EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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