#5E2EA0#5E2EA0

#5E2EA0 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.0% C 0.174 H 297.9°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#5E2EA0
RGBrgb(94, 46, 160)
HSLhsl(265, 55%, 40%)
HSVhsv(265, 71%, 63%)
CMYKcmyk(41.3%, 71.2%, 0%, 37.3%)
CIE-LABlab(31.51, 45.59, -53.70)
CIE-LCHlch(31.51, 70.44, 310.33°)
OKLaboklab(42.98% 0.0812 -0.1534)
OKLCHoklch(42.98% 0.174 297.9)
XYZxyz(11.9366, 6.8715, 33.9483)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2EA0 #70A02E
analogous
#2E37A0 #5E2EA0 #972EA0
triadic
#5E2EA0 #A05E2E #2EA05E
tetradic
#5E2EA0 #A02E37 #70A02E #2EA097
square
#5E2EA0 #A02E37 #70A02E #2EA097
split-complementary
#5E2EA0 #A0972E #37A02E
monochromatic
#261341 #422070 #5E2EA0 #7B42C9 #9C72D6

Accessibility & contrast

On white

8.84
#5E2EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5E2EA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2EA0
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2EA0#FFFFFF#000000##FFFFFF
##5E2EA01.008.842.378.84
#FFFFFF8.841.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA3
Deuteranopia (green-blind)
#00499E
Tritanopia (blue-blind)
#4E4A64
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5e2ea0;
/* rgb */ color: rgb(94, 46, 160);
/* oklch */ color: oklch(43.0% 0.174 297.9);
Tailwind
colors: {
  custom: {
    50: '#916bbd',
    500: '#5e2ea0',
    950: '#000000',
  },
}
SCSS
$custom: #5e2ea0;
$custom-light: #916bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2ea0",
  "rgb": {
    "r": 94,
    "g": 46,
    "b": 160
  },
  "hsl": {
    "h": 265.263,
    "s": 55.34,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42979,
    "c": 0.17354,
    "h": 297.9
  },
  "luminance": 0.06872
}

Semantic roles & 50–950 ramp

primary
#5E2EA0
secondary
#9BBE6C
accent
#DF49A0
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5E2EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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