#5E2EB1#5E2EB1

#5E2EB1 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.4% C 0.193 H 293.7°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#5E2EB1
RGBrgb(94, 46, 177)
HSLhsl(262, 59%, 44%)
HSVhsv(262, 74%, 69%)
CMYKcmyk(46.9%, 74%, 0%, 30.6%)
CIE-LABlab(32.94, 50.12, -61.59)
CIE-LCHlch(32.94, 79.40, 309.14°)
OKLaboklab(44.43% 0.0776 -0.1766)
OKLCHoklch(44.43% 0.193 293.7)
XYZxyz(13.5267, 7.5076, 42.3229)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2EB1 #81B12E
analogous
#2E3FB1 #5E2EB1 #9F2EB1
triadic
#5E2EB1 #B15E2E #2EB15E
tetradic
#5E2EB1 #B12E3F #81B12E #2EB19F
square
#5E2EB1 #B12E3F #81B12E #2EB19F
split-complementary
#5E2EB1 #B19F2E #3FB12E
monochromatic
#2A1550 #442180 #5E2EB1 #7C4CD0 #A07CDD

Accessibility & contrast

On white

8.39
#5E2EB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#5E2EB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2EB1
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2EB1#FFFFFF#000000##FFFFFF
##5E2EB11.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB5
Deuteranopia (green-blind)
#004BAE
Tritanopia (blue-blind)
#45516D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5e2eb1;
/* rgb */ color: rgb(94, 46, 177);
/* oklch */ color: oklch(44.4% 0.193 293.7);
Tailwind
colors: {
  custom: {
    50: '#946bc9',
    500: '#5e2eb1',
    950: '#000000',
  },
}
SCSS
$custom: #5e2eb1;
$custom-light: #946bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2eb1",
  "rgb": {
    "r": 94,
    "g": 46,
    "b": 177
  },
  "hsl": {
    "h": 261.985,
    "s": 58.744,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44428,
    "c": 0.19285,
    "h": 293.7
  },
  "luminance": 0.07508
}

Semantic roles & 50–950 ramp

primary
#5E2EB1
secondary
#A8C675
accent
#E246A9
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E2EB1

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

Preview Lab → · Contrast checker → · Palette generator →

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