#5E2AB5#5E2AB5

#5E2AB5 is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.3% C 0.201 H 293.4°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#5E2AB5
RGBrgb(94, 42, 181)
HSLhsl(262, 62%, 44%)
HSVhsv(262, 77%, 71%)
CMYKcmyk(48.1%, 76.8%, 0%, 29%)
CIE-LABlab(32.64, 53.04, -64.46)
CIE-LCHlch(32.64, 83.47, 309.45°)
OKLaboklab(44.33% 0.0799 -0.1849)
OKLCHoklch(44.33% 0.201 293.4)
XYZxyz(13.7822, 7.3714, 44.4037)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2AB5 #81B52A
analogous
#2A3BB5 #5E2AB5 #A32AB5
triadic
#5E2AB5 #B55E2A #2AB55E
tetradic
#5E2AB5 #B52A3B #81B52A #2AB5A3
square
#5E2AB5 #B52A3B #81B52A #2AB5A3
split-complementary
#5E2AB5 #B5A32A #3BB52A
monochromatic
#2A1352 #441E83 #5E2AB5 #7C48D4 #A079E0

Accessibility & contrast

On white

8.49
#5E2AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5E2AB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2AB5
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2AB5#FFFFFF#000000##FFFFFF
##5E2AB51.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB9
Deuteranopia (green-blind)
#004AB2
Tritanopia (blue-blind)
#43506E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5e2ab5;
/* rgb */ color: rgb(94, 42, 181);
/* oklch */ color: oklch(44.3% 0.201 293.4);
Tailwind
colors: {
  custom: {
    50: '#946acc',
    500: '#5e2ab5',
    950: '#000000',
  },
}
SCSS
$custom: #5e2ab5;
$custom-light: #946acc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2ab5",
  "rgb": {
    "r": 94,
    "g": 42,
    "b": 181
  },
  "hsl": {
    "h": 262.446,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44328,
    "c": 0.20146,
    "h": 293.4
  },
  "luminance": 0.07372
}

Semantic roles & 50–950 ramp

primary
#5E2AB5
secondary
#A8C873
accent
#E542A8
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5E2AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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