#5D36D5#5D36D5

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

Color values

HEX#5D36D5
RGBrgb(93, 54, 213)
HSLhsl(255, 65%, 52%)
HSVhsv(255, 75%, 84%)
CMYKcmyk(56.3%, 74.6%, 0%, 16.5%)
CIE-LABlab(37.42, 56.00, -75.32)
CIE-LCHlch(37.42, 93.86, 306.63°)
OKLaboklab(48.55% 0.0609 -0.2169)
OKLCHoklch(48.55% 0.225 285.7)
XYZxyz(17.8400, 9.7685, 63.8834)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D36D5 #AED536
analogous
#365FD5 #5D36D5 #AD36D5
triadic
#5D36D5 #D55D36 #36D55D
tetradic
#5D36D5 #D5365F #AED536 #36D5AD
square
#5D36D5 #D5365F #AED536 #36D5AD
split-complementary
#5D36D5 #D5AD36 #5FD536
monochromatic
#301978 #4524AA #5D36D5 #8669E0 #AF9BEA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5D36D5#FFFFFF#000000##FFFFFF
##5D36D51.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)
#005CDA
Deuteranopia (green-blind)
#0053D2
Tritanopia (blue-blind)
#226383
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5d36d5;
/* rgb */ color: rgb(93, 54, 213);
/* oklch */ color: oklch(48.5% 0.225 285.7);
Tailwind
colors: {
  custom: {
    50: '#9871e3',
    500: '#5d36d5',
    950: '#000000',
  },
}
SCSS
$custom: #5d36d5;
$custom-light: #9871e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d36d5",
  "rgb": {
    "r": 93,
    "g": 54,
    "b": 213
  },
  "hsl": {
    "h": 254.717,
    "s": 65.432,
    "l": 52.353
  },
  "oklch": {
    "l": 0.4855,
    "c": 0.22526,
    "h": 285.7
  },
  "luminance": 0.0977
}

Semantic roles & 50–950 ramp

primary
#5D36D5
secondary
#C5D691
accent
#E83FBF
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5D36D5

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

Preview Lab → · Contrast checker → · Palette generator →

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