#5E36B2#5E36B2

#5E36B2 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.5% C 0.185 H 292.2°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#5E36B2
RGBrgb(94, 54, 178)
HSLhsl(259, 53%, 45%)
HSVhsv(259, 70%, 70%)
CMYKcmyk(47.2%, 69.7%, 0%, 30.2%)
CIE-LABlab(34.46, 46.36, -59.69)
CIE-LCHlch(34.46, 75.58, 307.83°)
OKLaboklab(45.54% 0.07 -0.171)
OKLCHoklch(45.54% 0.185 292.2)
XYZxyz(13.9689, 8.2319, 42.9638)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E36B2 #8AB236
analogous
#364CB2 #5E36B2 #9C36B2
triadic
#5E36B2 #B25E36 #36B25E
tetradic
#5E36B2 #B2364C #8AB236 #36B29C
square
#5E36B2 #B2364C #8AB236 #36B29C
split-complementary
#5E36B2 #B29C36 #4CB236
monochromatic
#2C1A54 #452883 #5E36B2 #7E59CD #A288DB

Accessibility & contrast

On white

7.94
#5E36B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5E36B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E36B2
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E36B2#FFFFFF#000000##FFFFFF
##5E36B21.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#004FB0
Tritanopia (blue-blind)
#445570
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5e36b2;
/* rgb */ color: rgb(94, 54, 178);
/* oklch */ color: oklch(45.5% 0.185 292.2);
Tailwind
colors: {
  custom: {
    50: '#9370ca',
    500: '#5e36b2',
    950: '#000000',
  },
}
SCSS
$custom: #5e36b2;
$custom-light: #9370ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5e36b2",
  "rgb": {
    "r": 94,
    "g": 54,
    "b": 178
  },
  "hsl": {
    "h": 259.355,
    "s": 53.448,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45537,
    "c": 0.18478,
    "h": 292.2
  },
  "luminance": 0.08232
}

Semantic roles & 50–950 ramp

primary
#5E36B2
secondary
#AEC57F
accent
#DD4BAE
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5E36B2

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

Preview Lab → · Contrast checker → · Palette generator →

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