#5E2EA3#5E2EA3

#5E2EA3 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.2% C 0.177 H 297.1°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#5E2EA3
RGBrgb(94, 46, 163)
HSLhsl(265, 56%, 41%)
HSVhsv(265, 72%, 64%)
CMYKcmyk(42.3%, 71.8%, 0%, 36.1%)
CIE-LABlab(31.76, 46.39, -55.12)
CIE-LCHlch(31.76, 72.04, 310.08°)
OKLaboklab(43.23% 0.0806 -0.1575)
OKLCHoklch(43.23% 0.177 297.1)
XYZxyz(12.2022, 6.9778, 35.3472)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2EA3 #73A32E
analogous
#2E39A3 #5E2EA3 #982EA3
triadic
#5E2EA3 #A35E2E #2EA35E
tetradic
#5E2EA3 #A32E39 #73A32E #2EA398
square
#5E2EA3 #A32E39 #73A32E #2EA398
split-complementary
#5E2EA3 #A3982E #39A32E
monochromatic
#271344 #422173 #5E2EA3 #7B44CA #9D74D8

Accessibility & contrast

On white

8.77
#5E2EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5E2EA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2EA3
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2EA3#FFFFFF#000000##FFFFFF
##5E2EA31.008.772.408.77
#FFFFFF8.771.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA6
Deuteranopia (green-blind)
#0049A1
Tritanopia (blue-blind)
#4C4B65
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5e2ea3;
/* rgb */ color: rgb(94, 46, 163);
/* oklch */ color: oklch(43.2% 0.177 297.1);
Tailwind
colors: {
  custom: {
    50: '#926bbf',
    500: '#5e2ea3',
    950: '#000000',
  },
}
SCSS
$custom: #5e2ea3;
$custom-light: #926bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2ea3",
  "rgb": {
    "r": 94,
    "g": 46,
    "b": 163
  },
  "hsl": {
    "h": 264.615,
    "s": 55.981,
    "l": 40.98
  },
  "oklch": {
    "l": 0.43228,
    "c": 0.17698,
    "h": 297.1
  },
  "luminance": 0.06978
}

Semantic roles & 50–950 ramp

primary
#5E2EA3
secondary
#9EBF6D
accent
#DF49A1
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5E2EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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