#5E2DB8#5E2DB8

#5E2DB8 is a dark, highly saturated violet. Relative luminance 0.077; OKLCH L 44.9% C 0.202 H 292.3°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#5E2DB8
RGBrgb(94, 45, 184)
HSLhsl(261, 61%, 45%)
HSVhsv(261, 76%, 72%)
CMYKcmyk(48.9%, 75.5%, 0%, 27.8%)
CIE-LABlab(33.39, 52.46, -65.01)
CIE-LCHlch(33.39, 83.54, 308.90°)
OKLaboklab(44.93% 0.0767 -0.1866)
OKLCHoklch(44.93% 0.202 292.3)
XYZxyz(14.2038, 7.7166, 46.0792)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2DB8 #87B82D
analogous
#2D41B8 #5E2DB8 #A42DB8
triadic
#5E2DB8 #B85E2D #2DB85E
tetradic
#5E2DB8 #B82D41 #87B82D #2DB8A4
square
#5E2DB8 #B82D41 #87B82D #2DB8A4
split-complementary
#5E2DB8 #B8A42D #41B82D
monochromatic
#2C1556 #452187 #5E2DB8 #7D4ED4 #A280E0

Accessibility & contrast

On white

8.26
#5E2DB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5E2DB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2DB8
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2DB8#FFFFFF#000000##FFFFFF
##5E2DB81.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BC
Deuteranopia (green-blind)
#004CB5
Tritanopia (blue-blind)
#415371
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5e2db8;
/* rgb */ color: rgb(94, 45, 184);
/* oklch */ color: oklch(44.9% 0.202 292.3);
Tailwind
colors: {
  custom: {
    50: '#946bce',
    500: '#5e2db8',
    950: '#000000',
  },
}
SCSS
$custom: #5e2db8;
$custom-light: #946bce;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2db8",
  "rgb": {
    "r": 94,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 261.151,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.44934,
    "c": 0.20172,
    "h": 292.3
  },
  "luminance": 0.07717
}

Semantic roles & 50–950 ramp

primary
#5E2DB8
secondary
#ACC978
accent
#E444AB
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5E2DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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