#5E2EAB#5E2EAB

#5E2EAB is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.9% C 0.186 H 295.1°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#5E2EAB
RGBrgb(94, 46, 171)
HSLhsl(263, 58%, 43%)
HSVhsv(263, 73%, 67%)
CMYKcmyk(45%, 73.1%, 0%, 32.9%)
CIE-LABlab(32.42, 48.52, -58.84)
CIE-LCHlch(32.42, 76.26, 309.50°)
OKLaboklab(43.91% 0.079 -0.1685)
OKLCHoklch(43.91% 0.186 295.1)
XYZxyz(12.9418, 7.2736, 39.2423)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2EAB #7BAB2E
analogous
#2E3CAB #5E2EAB #9D2EAB
triadic
#5E2EAB #AB5E2E #2EAB5E
tetradic
#5E2EAB #AB2E3C #7BAB2E #2EAB9D
square
#5E2EAB #AB2E3C #7BAB2E #2EAB9D
split-complementary
#5E2EAB #AB9D2E #3CAB2E
monochromatic
#29144B #43217B #5E2EAB #7C48CE #9E79DB

Accessibility & contrast

On white

8.55
#5E2EAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E2EAB
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2EAB#FFFFFF#000000##FFFFFF
##5E2EAB1.008.552.458.55
#FFFFFF8.551.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#004AA9
Tritanopia (blue-blind)
#484E6A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5e2eab;
/* rgb */ color: rgb(94, 46, 171);
/* oklch */ color: oklch(43.9% 0.186 295.1);
Tailwind
colors: {
  custom: {
    50: '#936bc5',
    500: '#5e2eab',
    950: '#000000',
  },
}
SCSS
$custom: #5e2eab;
$custom-light: #936bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2eab",
  "rgb": {
    "r": 94,
    "g": 46,
    "b": 171
  },
  "hsl": {
    "h": 263.04,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.43907,
    "c": 0.18608,
    "h": 295.1
  },
  "luminance": 0.07274
}

Semantic roles & 50–950 ramp

primary
#5E2EAB
secondary
#A4C372
accent
#E147A6
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E2EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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