#5E2EA5#5E2EA5

#5E2EA5 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.4% C 0.179 H 296.6°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#5E2EA5
RGBrgb(94, 46, 165)
HSLhsl(264, 56%, 41%)
HSVhsv(264, 72%, 65%)
CMYKcmyk(43%, 72.1%, 0%, 35.3%)
CIE-LABlab(31.92, 46.92, -56.06)
CIE-LCHlch(31.92, 73.10, 309.93°)
OKLaboklab(43.4% 0.0802 -0.1603)
OKLCHoklch(43.4% 0.179 296.6)
XYZxyz(12.3828, 7.0500, 36.2984)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2EA5 #75A52E
analogous
#2E3AA5 #5E2EA5 #9A2EA5
triadic
#5E2EA5 #A55E2E #2EA55E
tetradic
#5E2EA5 #A52E3A #75A52E #2EA59A
square
#5E2EA5 #A52E3A #75A52E #2EA59A
split-complementary
#5E2EA5 #A59A2E #3AA52E
monochromatic
#271345 #432175 #5E2EA5 #7B45CB #9D75D8

Accessibility & contrast

On white

8.71
#5E2EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5E2EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2EA5
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2EA5#FFFFFF#000000##FFFFFF
##5E2EA51.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA8
Deuteranopia (green-blind)
#004AA3
Tritanopia (blue-blind)
#4B4C66
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5e2ea5;
/* rgb */ color: rgb(94, 46, 165);
/* oklch */ color: oklch(43.4% 0.179 296.6);
Tailwind
colors: {
  custom: {
    50: '#926bc1',
    500: '#5e2ea5',
    950: '#000000',
  },
}
SCSS
$custom: #5e2ea5;
$custom-light: #926bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2ea5",
  "rgb": {
    "r": 94,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 264.202,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.43396,
    "c": 0.17926,
    "h": 296.6
  },
  "luminance": 0.0705
}

Semantic roles & 50–950 ramp

primary
#5E2EA5
secondary
#9FC06F
accent
#E048A3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5E2EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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