#5D36B2#5D36B2

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

Color values

HEX#5D36B2
RGBrgb(93, 54, 178)
HSLhsl(259, 53%, 45%)
HSVhsv(259, 70%, 70%)
CMYKcmyk(47.8%, 69.7%, 0%, 30.2%)
CIE-LABlab(34.35, 46.18, -59.87)
CIE-LCHlch(34.35, 75.61, 307.64°)
OKLaboklab(45.43% 0.0685 -0.1716)
OKLCHoklch(45.43% 0.185 291.8)
XYZxyz(13.8670, 8.1794, 42.9590)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D36B2 #8BB236
analogous
#364DB2 #5D36B2 #9B36B2
triadic
#5D36B2 #B25D36 #36B25D
tetradic
#5D36B2 #B2364D #8BB236 #36B29B
square
#5D36B2 #B2364D #8BB236 #36B29B
split-complementary
#5D36B2 #B29B36 #4DB236
monochromatic
#2C1A54 #442883 #5D36B2 #7D59CD #A288DB

Accessibility & contrast

On white

7.97
#5D36B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5D36B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D36B2
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D36B2#FFFFFF#000000##FFFFFF
##5D36B21.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d36b2;
/* rgb */ color: rgb(93, 54, 178);
/* oklch */ color: oklch(45.4% 0.185 291.8);
Tailwind
colors: {
  custom: {
    50: '#9270ca',
    500: '#5d36b2',
    950: '#000000',
  },
}
SCSS
$custom: #5d36b2;
$custom-light: #9270ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5d36b2",
  "rgb": {
    "r": 93,
    "g": 54,
    "b": 178
  },
  "hsl": {
    "h": 258.871,
    "s": 53.448,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45435,
    "c": 0.18477,
    "h": 291.8
  },
  "luminance": 0.0818
}

Semantic roles & 50–950 ramp

primary
#5D36B2
secondary
#AFC57F
accent
#DD4BAF
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5D36B2

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

Preview Lab → · Contrast checker → · Palette generator →

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