#5E36A2#5E36A2

#5E36A2 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.2% C 0.166 H 295.9°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#5E36A2
RGBrgb(94, 54, 162)
HSLhsl(262, 50%, 42%)
HSVhsv(262, 67%, 64%)
CMYKcmyk(42%, 66.7%, 0%, 36.5%)
CIE-LABlab(33.19, 41.93, -52.18)
CIE-LCHlch(33.19, 66.94, 308.78°)
OKLaboklab(44.23% 0.0724 -0.1489)
OKLCHoklch(44.23% 0.166 295.9)
XYZxyz(12.4551, 7.6264, 34.9912)
Luminance0.0763 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E36A2 #7AA236
analogous
#3644A2 #5E36A2 #9436A2
triadic
#5E36A2 #A25E36 #36A25E
tetradic
#5E36A2 #A23644 #7AA236 #36A294
square
#5E36A2 #A23644 #7AA236 #36A294
split-complementary
#5E36A2 #A29436 #44A236
monochromatic
#291746 #432774 #5E36A2 #7C50C5 #9E7ED4

Accessibility & contrast

On white

8.32
#5E36A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#5E36A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E36A2
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E36A2#FFFFFF#000000##FFFFFF
##5E36A21.008.322.538.32
#FFFFFF8.321.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#004DA0
Tritanopia (blue-blind)
#4C4F67
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5e36a2;
/* rgb */ color: rgb(94, 54, 162);
/* oklch */ color: oklch(44.2% 0.166 295.9);
Tailwind
colors: {
  custom: {
    50: '#9170be',
    500: '#5e36a2',
    950: '#000000',
  },
}
SCSS
$custom: #5e36a2;
$custom-light: #9170be;
$custom-dark: #000000;
JSON
{
  "hex": "#5e36a2",
  "rgb": {
    "r": 94,
    "g": 54,
    "b": 162
  },
  "hsl": {
    "h": 262.222,
    "s": 50,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4423,
    "c": 0.16559,
    "h": 295.9
  },
  "luminance": 0.07627
}

Semantic roles & 50–950 ramp

primary
#5E36A2
secondary
#A3BD77
accent
#DA4EA6
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5E36A2

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

Preview Lab → · Contrast checker → · Palette generator →

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