#5E41A2#5E41A2

#5E41A2 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 45.9% C 0.150 H 293.4°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#5E41A2
RGBrgb(94, 65, 162)
HSLhsl(258, 43%, 45%)
HSVhsv(258, 60%, 64%)
CMYKcmyk(42%, 59.9%, 0%, 36.5%)
CIE-LABlab(35.53, 35.66, -48.39)
CIE-LCHlch(35.53, 60.10, 306.39°)
OKLaboklab(45.93% 0.0596 -0.1378)
OKLCHoklch(45.93% 0.15 293.4)
XYZxyz(13.0262, 8.7686, 35.1816)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E41A2 #85A241
analogous
#4155A2 #5E41A2 #8F41A2
triadic
#5E41A2 #A25E41 #41A25E
tetradic
#5E41A2 #A24155 #85A241 #41A28F
square
#5E41A2 #A24155 #85A241 #41A28F
split-complementary
#5E41A2 #A28F41 #55A241
monochromatic
#2B1E4B #452F76 #5E41A2 #7D61BF #A18CD1

Accessibility & contrast

On white

7.63
#5E41A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5E41A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E41A2
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E41A2#FFFFFF#000000##FFFFFF
##5E41A21.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A5
Deuteranopia (green-blind)
#0E52A0
Tritanopia (blue-blind)
#4C566B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5e41a2;
/* rgb */ color: rgb(94, 65, 162);
/* oklch */ color: oklch(45.9% 0.150 293.4);
Tailwind
colors: {
  custom: {
    50: '#9077be',
    500: '#5e41a2',
    950: '#000000',
  },
}
SCSS
$custom: #5e41a2;
$custom-light: #9077be;
$custom-dark: #000000;
JSON
{
  "hex": "#5e41a2",
  "rgb": {
    "r": 94,
    "g": 65,
    "b": 162
  },
  "hsl": {
    "h": 257.938,
    "s": 42.731,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45932,
    "c": 0.15012,
    "h": 293.4
  },
  "luminance": 0.08769
}

Semantic roles & 50–950 ramp

primary
#5E41A2
secondary
#ABBC83
accent
#D355AD
background
#F9F7FB
surface
#F1EDF7
border
#CBC8D0
text
#0D0912
muted
#7E7B81

Preview Lab

Preview with #5E41A2

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

Preview Lab → · Contrast checker → · Palette generator →

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