#5F36C4#5F36C4

#5F36C4 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.2% C 0.206 H 289.2°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#5F36C4
RGBrgb(95, 54, 196)
HSLhsl(257, 57%, 49%)
HSVhsv(257, 72%, 77%)
CMYKcmyk(51.5%, 72.4%, 0%, 23.1%)
CIE-LABlab(36.09, 51.54, -67.63)
CIE-LCHlch(36.09, 85.03, 307.31°)
OKLaboklab(47.19% 0.0678 -0.1943)
OKLCHoklch(47.19% 0.206 289.2)
XYZxyz(15.9994, 9.0560, 53.1188)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F36C4 #9BC436
analogous
#3654C4 #5F36C4 #A636C4
triadic
#5F36C4 #C45F36 #36C45F
tetradic
#5F36C4 #C43654 #9BC436 #36C4A6
square
#5F36C4 #C43654 #9BC436 #36C4A6
split-complementary
#5F36C4 #C4A636 #54C436
monochromatic
#301C64 #482994 #5F36C4 #8463D4 #AA93E1

Accessibility & contrast

On white

7.47
#5F36C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#5F36C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F36C4
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F36C4#FFFFFF#000000##FFFFFF
##5F36C41.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C8
Deuteranopia (green-blind)
#0051C1
Tritanopia (blue-blind)
#3A5C7A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5f36c4;
/* rgb */ color: rgb(95, 54, 196);
/* oklch */ color: oklch(47.2% 0.206 289.2);
Tailwind
colors: {
  custom: {
    50: '#9671d7',
    500: '#5f36c4',
    950: '#000000',
  },
}
SCSS
$custom: #5f36c4;
$custom-light: #9671d7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f36c4",
  "rgb": {
    "r": 95,
    "g": 54,
    "b": 196
  },
  "hsl": {
    "h": 257.324,
    "s": 56.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.47192,
    "c": 0.20578,
    "h": 289.2
  },
  "luminance": 0.09057
}

Semantic roles & 50–950 ramp

primary
#5F36C4
secondary
#B9CC89
accent
#E048B4
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5F36C4

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

Preview Lab → · Contrast checker → · Palette generator →

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