#5F36D1#5F36D1

#5F36D1 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.4% C 0.221 H 287.1°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#5F36D1
RGBrgb(95, 54, 209)
HSLhsl(256, 63%, 52%)
HSVhsv(256, 74%, 82%)
CMYKcmyk(54.5%, 74.2%, 0%, 18%)
CIE-LABlab(37.25, 55.16, -73.29)
CIE-LCHlch(37.25, 91.73, 306.96°)
OKLaboklab(48.36% 0.0648 -0.2109)
OKLCHoklch(48.36% 0.221 287.1)
XYZxyz(17.5437, 9.6737, 61.2520)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F36D1 #A8D136
analogous
#365BD1 #5F36D1 #AD36D1
triadic
#5F36D1 #D15F36 #36D15F
tetradic
#5F36D1 #D1365B #A8D136 #36D1AD
square
#5F36D1 #D1365B #A8D136 #36D1AD
split-complementary
#5F36D1 #D1AD36 #5BD136
monochromatic
#321A72 #4726A4 #5F36D1 #8768DC #AE9AE8

Accessibility & contrast

On white

7.16
#5F36D1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5F36D1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F36D1
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F36D1#FFFFFF#000000##FFFFFF
##5F36D11.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD5
Deuteranopia (green-blind)
#0053CE
Tritanopia (blue-blind)
#2E6181
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5f36d1;
/* rgb */ color: rgb(95, 54, 209);
/* oklch */ color: oklch(48.4% 0.221 287.1);
Tailwind
colors: {
  custom: {
    50: '#9871e0',
    500: '#5f36d1',
    950: '#000000',
  },
}
SCSS
$custom: #5f36d1;
$custom-light: #9871e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f36d1",
  "rgb": {
    "r": 95,
    "g": 54,
    "b": 209
  },
  "hsl": {
    "h": 255.871,
    "s": 62.753,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48363,
    "c": 0.22059,
    "h": 287.1
  },
  "luminance": 0.09675
}

Semantic roles & 50–950 ramp

primary
#5F36D1
secondary
#C1D38F
accent
#E642BA
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #5F36D1

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

Preview Lab → · Contrast checker → · Palette generator →

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