#5E2E9E#5E2E9E

#5E2E9E is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.8% C 0.171 H 298.4°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#5E2E9E
RGBrgb(94, 46, 158)
HSLhsl(266, 55%, 40%)
HSVhsv(266, 71%, 62%)
CMYKcmyk(40.5%, 70.9%, 0%, 38%)
CIE-LABlab(31.35, 45.07, -52.75)
CIE-LCHlch(31.35, 69.38, 310.51°)
OKLaboklab(42.81% 0.0816 -0.1506)
OKLCHoklch(42.81% 0.171 298.4)
XYZxyz(11.7631, 6.8021, 33.0343)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2E9E #6E9E2E
analogous
#2E369E #5E2E9E #962E9E
triadic
#5E2E9E #9E5E2E #2E9E5E
tetradic
#5E2E9E #9E2E36 #6E9E2E #2E9E96
square
#5E2E9E #9E2E36 #6E9E2E #2E9E96
split-complementary
#5E2E9E #9E962E #369E2E
monochromatic
#26123F #42206F #5E2E9E #7B41C8 #9C71D6

Accessibility & contrast

On white

8.90
#5E2E9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5E2E9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2E9E
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2E9E#FFFFFF#000000##FFFFFF
##5E2E9E1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA1
Deuteranopia (green-blind)
#00499C
Tritanopia (blue-blind)
#4F4962
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5e2e9e;
/* rgb */ color: rgb(94, 46, 158);
/* oklch */ color: oklch(42.8% 0.171 298.4);
Tailwind
colors: {
  custom: {
    50: '#916bbb',
    500: '#5e2e9e',
    950: '#000000',
  },
}
SCSS
$custom: #5e2e9e;
$custom-light: #916bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2e9e",
  "rgb": {
    "r": 94,
    "g": 46,
    "b": 158
  },
  "hsl": {
    "h": 265.714,
    "s": 54.902,
    "l": 40
  },
  "oklch": {
    "l": 0.42814,
    "c": 0.17125,
    "h": 298.4
  },
  "luminance": 0.06802
}

Semantic roles & 50–950 ramp

primary
#5E2E9E
secondary
#9ABD6B
accent
#DE4A9F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5E2E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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