#5E2B9A#5E2B9A

#5E2B9A is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.170 H 300.1°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#5E2B9A
RGBrgb(94, 43, 154)
HSLhsl(268, 56%, 39%)
HSVhsv(268, 72%, 60%)
CMYKcmyk(39%, 72.1%, 0%, 39.6%)
CIE-LABlab(30.50, 45.52, -51.70)
CIE-LCHlch(30.50, 68.89, 311.36°)
OKLaboklab(42.11% 0.0854 -0.1475)
OKLCHoklch(42.11% 0.17 300.1)
XYZxyz(11.3113, 6.4404, 31.2128)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2B9A #679A2B
analogous
#2B2F9A #5E2B9A #952B9A
triadic
#5E2B9A #9A5E2B #2B9A5E
tetradic
#5E2B9A #9A2B2F #679A2B #2B9A95
square
#5E2B9A #9A2B2F #679A2B #2B9A95
split-complementary
#5E2B9A #9A952B #2F9A2B
monochromatic
#24103A #411E6A #5E2B9A #7B3AC8 #9B6AD5

Accessibility & contrast

On white

9.18
#5E2B9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5E2B9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2B9A
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2B9A#FFFFFF#000000##FFFFFF
##5E2B9A1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479D
Deuteranopia (green-blind)
#004798
Tritanopia (blue-blind)
#50465F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5e2b9a;
/* rgb */ color: rgb(94, 43, 154);
/* oklch */ color: oklch(42.1% 0.170 300.1);
Tailwind
colors: {
  custom: {
    50: '#9169b9',
    500: '#5e2b9a',
    950: '#000000',
  },
}
SCSS
$custom: #5e2b9a;
$custom-light: #9169b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2b9a",
  "rgb": {
    "r": 94,
    "g": 43,
    "b": 154
  },
  "hsl": {
    "h": 267.568,
    "s": 56.345,
    "l": 38.627
  },
  "oklch": {
    "l": 0.42106,
    "c": 0.17042,
    "h": 300.1
  },
  "luminance": 0.06441
}

Semantic roles & 50–950 ramp

primary
#5E2B9A
secondary
#94BC65
accent
#E0489A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2B9A

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

Preview Lab → · Contrast checker → · Palette generator →

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