#5E2EAA#5E2EAA

#5E2EAA is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.8% C 0.185 H 295.3°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#5E2EAA
RGBrgb(94, 46, 170)
HSLhsl(263, 57%, 42%)
HSVhsv(263, 73%, 67%)
CMYKcmyk(44.7%, 72.9%, 0%, 33.3%)
CIE-LABlab(32.34, 48.25, -58.38)
CIE-LCHlch(32.34, 75.74, 309.57°)
OKLaboklab(43.82% 0.0792 -0.1671)
OKLCHoklch(43.82% 0.185 295.3)
XYZxyz(12.8468, 7.2356, 38.7422)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2EAA #7AAA2E
analogous
#2E3CAA #5E2EAA #9C2EAA
triadic
#5E2EAA #AA5E2E #2EAA5E
tetradic
#5E2EAA #AA2E3C #7AAA2E #2EAA9C
square
#5E2EAA #AA2E3C #7AAA2E #2EAA9C
split-complementary
#5E2EAA #AA9C2E #3CAA2E
monochromatic
#29144A #43217A #5E2EAA #7C48CD #9E78DA

Accessibility & contrast

On white

8.58
#5E2EAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5E2EAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2EAA
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2EAA#FFFFFF#000000##FFFFFF
##5E2EAA1.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAE
Deuteranopia (green-blind)
#004AA8
Tritanopia (blue-blind)
#494E69
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5e2eaa;
/* rgb */ color: rgb(94, 46, 170);
/* oklch */ color: oklch(43.8% 0.185 295.3);
Tailwind
colors: {
  custom: {
    50: '#936bc4',
    500: '#5e2eaa',
    950: '#000000',
  },
}
SCSS
$custom: #5e2eaa;
$custom-light: #936bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2eaa",
  "rgb": {
    "r": 94,
    "g": 46,
    "b": 170
  },
  "hsl": {
    "h": 263.226,
    "s": 57.407,
    "l": 42.353
  },
  "oklch": {
    "l": 0.43821,
    "c": 0.18495,
    "h": 295.3
  },
  "luminance": 0.07236
}

Semantic roles & 50–950 ramp

primary
#5E2EAA
secondary
#A3C371
accent
#E147A5
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E2EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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