#5E2E96#5E2E96

#5E2E96 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.2% C 0.162 H 300.7°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#5E2E96
RGBrgb(94, 46, 150)
HSLhsl(268, 53%, 38%)
HSVhsv(268, 69%, 59%)
CMYKcmyk(37.3%, 69.3%, 0%, 41.2%)
CIE-LABlab(30.73, 42.97, -48.89)
CIE-LCHlch(30.73, 65.09, 311.31°)
OKLaboklab(42.17% 0.0828 -0.1393)
OKLCHoklch(42.17% 0.162 300.7)
XYZxyz(11.0968, 6.5356, 29.5251)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2E96 #66962E
analogous
#2E3296 #5E2E96 #922E96
triadic
#5E2E96 #965E2E #2E965E
tetradic
#5E2E96 #962E32 #66962E #2E9692
square
#5E2E96 #962E32 #66962E #2E9692
split-complementary
#5E2E96 #96922E #32962E
monochromatic
#231138 #412067 #5E2E96 #7B3EC4 #9B6CD2

Accessibility & contrast

On white

9.10
#5E2E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5E2E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2E96
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2E96#FFFFFF#000000##FFFFFF
##5E2E961.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004899
Deuteranopia (green-blind)
#004894
Tritanopia (blue-blind)
#52465E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5e2e96;
/* rgb */ color: rgb(94, 46, 150);
/* oklch */ color: oklch(42.2% 0.162 300.7);
Tailwind
colors: {
  custom: {
    50: '#906ab6',
    500: '#5e2e96',
    950: '#000000',
  },
}
SCSS
$custom: #5e2e96;
$custom-light: #906ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2e96",
  "rgb": {
    "r": 94,
    "g": 46,
    "b": 150
  },
  "hsl": {
    "h": 267.692,
    "s": 53.061,
    "l": 38.431
  },
  "oklch": {
    "l": 0.4217,
    "c": 0.16202,
    "h": 300.7
  },
  "luminance": 0.06536
}

Semantic roles & 50–950 ramp

primary
#5E2E96
secondary
#93B967
accent
#DC4B99
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5E2E96

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

Preview Lab → · Contrast checker → · Palette generator →

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