#5E36A6#5E36A6

#5E36A6 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.5% C 0.170 H 294.9°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#5E36A6
RGBrgb(94, 54, 166)
HSLhsl(261, 51%, 43%)
HSVhsv(261, 67%, 65%)
CMYKcmyk(43.4%, 67.5%, 0%, 34.9%)
CIE-LABlab(33.50, 43.03, -54.08)
CIE-LCHlch(33.50, 69.11, 308.51°)
OKLaboklab(44.55% 0.0719 -0.1545)
OKLCHoklch(44.55% 0.17 294.9)
XYZxyz(12.8164, 7.7709, 36.8937)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E36A6 #7EA636
analogous
#3646A6 #5E36A6 #9636A6
triadic
#5E36A6 #A65E36 #36A65E
tetradic
#5E36A6 #A63646 #7EA636 #36A696
square
#5E36A6 #A63646 #7EA636 #36A696
split-complementary
#5E36A6 #A69636 #46A636
monochromatic
#2A184A #442778 #5E36A6 #7C52C7 #9F81D6

Accessibility & contrast

On white

8.22
#5E36A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#5E36A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E36A6
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E36A6#FFFFFF#000000##FFFFFF
##5E36A61.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A9
Deuteranopia (green-blind)
#004DA4
Tritanopia (blue-blind)
#4B5169
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5e36a6;
/* rgb */ color: rgb(94, 54, 166);
/* oklch */ color: oklch(44.5% 0.170 294.9);
Tailwind
colors: {
  custom: {
    50: '#9270c1',
    500: '#5e36a6',
    950: '#000000',
  },
}
SCSS
$custom: #5e36a6;
$custom-light: #9270c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e36a6",
  "rgb": {
    "r": 94,
    "g": 54,
    "b": 166
  },
  "hsl": {
    "h": 261.429,
    "s": 50.909,
    "l": 43.137
  },
  "oklch": {
    "l": 0.4455,
    "c": 0.17044,
    "h": 294.9
  },
  "luminance": 0.07771
}

Semantic roles & 50–950 ramp

primary
#5E36A6
secondary
#A6BF79
accent
#DA4DA8
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5E36A6

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

Preview Lab → · Contrast checker → · Palette generator →

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