#5E2AB1#5E2AB1

#5E2AB1 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 44.0% C 0.197 H 294.3°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#5E2AB1
RGBrgb(94, 42, 177)
HSLhsl(263, 62%, 43%)
HSVhsv(263, 76%, 69%)
CMYKcmyk(46.9%, 76.3%, 0%, 30.6%)
CIE-LABlab(32.28, 51.99, -62.66)
CIE-LCHlch(32.28, 81.42, 309.68°)
OKLaboklab(43.97% 0.081 -0.1797)
OKLCHoklch(43.97% 0.197 294.3)
XYZxyz(13.3777, 7.2095, 42.2732)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2AB1 #7DB12A
analogous
#2A39B1 #5E2AB1 #A12AB1
triadic
#5E2AB1 #B15E2A #2AB15E
tetradic
#5E2AB1 #B12A39 #7DB12A #2AB1A1
square
#5E2AB1 #B12A39 #7DB12A #2AB1A1
split-complementary
#5E2AB1 #B1A12A #39B12A
monochromatic
#29134E #441E80 #5E2AB1 #7C45D3 #9F77DF

Accessibility & contrast

On white

8.60
#5E2AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5E2AB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2AB1
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2AB1#FFFFFF#000000##FFFFFF
##5E2AB11.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB5
Deuteranopia (green-blind)
#004AAE
Tritanopia (blue-blind)
#454F6C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5e2ab1;
/* rgb */ color: rgb(94, 42, 177);
/* oklch */ color: oklch(44.0% 0.197 294.3);
Tailwind
colors: {
  custom: {
    50: '#9469c9',
    500: '#5e2ab1',
    950: '#000000',
  },
}
SCSS
$custom: #5e2ab1;
$custom-light: #9469c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2ab1",
  "rgb": {
    "r": 94,
    "g": 42,
    "b": 177
  },
  "hsl": {
    "h": 263.111,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43967,
    "c": 0.19709,
    "h": 294.3
  },
  "luminance": 0.0721
}

Semantic roles & 50–950 ramp

primary
#5E2AB1
secondary
#A5C670
accent
#E543A6
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E2AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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