#5D36D4#5D36D4

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

Color values

HEX#5D36D4
RGBrgb(93, 54, 212)
HSLhsl(255, 65%, 52%)
HSVhsv(255, 75%, 83%)
CMYKcmyk(56.1%, 74.5%, 0%, 16.9%)
CIE-LABlab(37.33, 55.72, -74.90)
CIE-LCHlch(37.33, 93.35, 306.65°)
OKLaboklab(48.46% 0.0611 -0.2156)
OKLCHoklch(48.46% 0.224 285.8)
XYZxyz(17.7134, 9.7179, 63.2170)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D36D4 #ADD436
analogous
#365ED4 #5D36D4 #AC36D4
triadic
#5D36D4 #D45D36 #36D45D
tetradic
#5D36D4 #D4365E #ADD436 #36D4AC
square
#5D36D4 #D4365E #ADD436 #36D4AC
split-complementary
#5D36D4 #D4AC36 #5ED436
monochromatic
#301976 #4524A9 #5D36D4 #8668DF #AE9BEA

Accessibility & contrast

On white

7.13
#5D36D4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5D36D4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D36D4
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D36D4#FFFFFF#000000##FFFFFF
##5D36D41.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d36d4;
/* rgb */ color: rgb(93, 54, 212);
/* oklch */ color: oklch(48.5% 0.224 285.8);
Tailwind
colors: {
  custom: {
    50: '#9771e2',
    500: '#5d36d4',
    950: '#000000',
  },
}
SCSS
$custom: #5d36d4;
$custom-light: #9771e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d36d4",
  "rgb": {
    "r": 93,
    "g": 54,
    "b": 212
  },
  "hsl": {
    "h": 254.81,
    "s": 64.754,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48457,
    "c": 0.22414,
    "h": 285.8
  },
  "luminance": 0.09719
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5D36D4

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

Preview Lab → · Contrast checker → · Palette generator →

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