#5E2E9D#5E2E9D

#5E2E9D is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.7% C 0.170 H 298.7°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#5E2E9D
RGBrgb(94, 46, 157)
HSLhsl(266, 55%, 40%)
HSVhsv(266, 71%, 62%)
CMYKcmyk(40.1%, 70.7%, 0%, 38.4%)
CIE-LABlab(31.27, 44.80, -52.27)
CIE-LCHlch(31.27, 68.84, 310.60°)
OKLaboklab(42.73% 0.0817 -0.1492)
OKLCHoklch(42.73% 0.17 298.7)
XYZxyz(11.6774, 6.7678, 32.5828)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2E9D #6D9D2E
analogous
#2E359D #5E2E9D #962E9D
triadic
#5E2E9D #9D5E2E #2E9D5E
tetradic
#5E2E9D #9D2E35 #6D9D2E #2E9D96
square
#5E2E9D #9D2E35 #6D9D2E #2E9D96
split-complementary
#5E2E9D #9D962E #359D2E
monochromatic
#25123E #42206E #5E2E9D #7B41C7 #9C70D5

Accessibility & contrast

On white

8.92
#5E2E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5E2E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2E9D
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2E9D#FFFFFF#000000##FFFFFF
##5E2E9D1.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA0
Deuteranopia (green-blind)
#00489B
Tritanopia (blue-blind)
#4F4962
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5e2e9d;
/* rgb */ color: rgb(94, 46, 157);
/* oklch */ color: oklch(42.7% 0.170 298.7);
Tailwind
colors: {
  custom: {
    50: '#916bbb',
    500: '#5e2e9d',
    950: '#000000',
  },
}
SCSS
$custom: #5e2e9d;
$custom-light: #916bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2e9d",
  "rgb": {
    "r": 94,
    "g": 46,
    "b": 157
  },
  "hsl": {
    "h": 265.946,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42733,
    "c": 0.1701,
    "h": 298.7
  },
  "luminance": 0.06768
}

Semantic roles & 50–950 ramp

primary
#5E2E9D
secondary
#99BD6A
accent
#DE4A9E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5E2E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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