#5E2E8E#5E2E8E

#5E2E8E is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.5% C 0.153 H 303.3°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#5E2E8E
RGBrgb(94, 46, 142)
HSLhsl(270, 51%, 37%)
HSVhsv(270, 68%, 56%)
CMYKcmyk(33.8%, 67.6%, 0%, 44.3%)
CIE-LABlab(30.12, 40.91, -44.95)
CIE-LCHlch(30.12, 60.77, 312.30°)
OKLaboklab(41.55% 0.0838 -0.1277)
OKLCHoklch(41.55% 0.153 303.3)
XYZxyz(10.4744, 6.2867, 26.2476)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2E8E #5E8E2E
analogous
#2E2E8E #5E2E8E #8E2E8E
triadic
#5E2E8E #8E5E2E #2E8E5E
tetradic
#5E2E8E #8E2E2E #5E8E2E #2E8E8E
square
#5E2E8E #8E2E2E #5E8E2E #2E8E8E
split-complementary
#5E2E8E #8E8E2E #2E8E2E
monochromatic
#211032 #3F1F60 #5E2E8E #7D3DBC #9B68CE

Accessibility & contrast

On white

9.30
#5E2E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5E2E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2E8E
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2E8E#FFFFFF#000000##FFFFFF
##5E2E8E1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#0A478C
Tritanopia (blue-blind)
#55435A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5e2e8e;
/* rgb */ color: rgb(94, 46, 142);
/* oklch */ color: oklch(41.5% 0.153 303.3);
Tailwind
colors: {
  custom: {
    50: '#906ab0',
    500: '#5e2e8e',
    950: '#000000',
  },
}
SCSS
$custom: #5e2e8e;
$custom-light: #906ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2e8e",
  "rgb": {
    "r": 94,
    "g": 46,
    "b": 142
  },
  "hsl": {
    "h": 270,
    "s": 51.064,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41549,
    "c": 0.15272,
    "h": 303.3
  },
  "luminance": 0.06287
}

Semantic roles & 50–950 ramp

primary
#5E2E8E
secondary
#8CB563
accent
#DB4D94
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5E2E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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