#5E36D4#5E36D4

#5E36D4 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.5% C 0.224 H 286.2°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#5E36D4
RGBrgb(94, 54, 212)
HSLhsl(255, 65%, 52%)
HSVhsv(255, 75%, 83%)
CMYKcmyk(55.7%, 74.5%, 0%, 16.9%)
CIE-LABlab(37.43, 55.86, -74.74)
CIE-LCHlch(37.43, 93.30, 306.77°)
OKLaboklab(48.55% 0.0626 -0.2151)
OKLCHoklch(48.55% 0.224 286.2)
XYZxyz(17.8154, 9.7705, 63.2217)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E36D4 #ACD436
analogous
#365DD4 #5E36D4 #AD36D4
triadic
#5E36D4 #D45E36 #36D45E
tetradic
#5E36D4 #D4365D #ACD436 #36D4AD
square
#5E36D4 #D4365D #ACD436 #36D4AD
split-complementary
#5E36D4 #D4AD36 #5DD436
monochromatic
#311976 #4624A9 #5E36D4 #8668DF #AF9BEA

Accessibility & contrast

On white

7.11
#5E36D4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#5E36D4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E36D4
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E36D4#FFFFFF#000000##FFFFFF
##5E36D41.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD9
Deuteranopia (green-blind)
#0053D1
Tritanopia (blue-blind)
#276283
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5e36d4;
/* rgb */ color: rgb(94, 54, 212);
/* oklch */ color: oklch(48.5% 0.224 286.2);
Tailwind
colors: {
  custom: {
    50: '#9872e2',
    500: '#5e36d4',
    950: '#000000',
  },
}
SCSS
$custom: #5e36d4;
$custom-light: #9872e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e36d4",
  "rgb": {
    "r": 94,
    "g": 54,
    "b": 212
  },
  "hsl": {
    "h": 255.19,
    "s": 64.754,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48547,
    "c": 0.22405,
    "h": 286.2
  },
  "luminance": 0.09771
}

Semantic roles & 50–950 ramp

primary
#5E36D4
secondary
#C4D590
accent
#E840BD
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5E36D4

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

Preview Lab → · Contrast checker → · Palette generator →

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