#5F36C1#5F36C1

#5F36C1 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 46.9% C 0.202 H 289.8°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#5F36C1
RGBrgb(95, 54, 193)
HSLhsl(258, 56%, 48%)
HSVhsv(258, 72%, 76%)
CMYKcmyk(50.8%, 72%, 0%, 24.3%)
CIE-LABlab(35.83, 50.70, -66.30)
CIE-LCHlch(35.83, 83.47, 307.41°)
OKLaboklab(46.93% 0.0685 -0.1904)
OKLCHoklch(46.93% 0.202 289.8)
XYZxyz(15.6613, 8.9208, 51.3384)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F36C1 #98C136
analogous
#3652C1 #5F36C1 #A436C1
triadic
#5F36C1 #C15F36 #36C15F
tetradic
#5F36C1 #C13652 #98C136 #36C1A4
square
#5F36C1 #C13652 #98C136 #36C1A4
split-complementary
#5F36C1 #C1A436 #52C136
monochromatic
#301B61 #472991 #5F36C1 #8361D3 #A891E0

Accessibility & contrast

On white

7.54
#5F36C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5F36C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F36C1
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F36C1#FFFFFF#000000##FFFFFF
##5F36C11.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C5
Deuteranopia (green-blind)
#0051BE
Tritanopia (blue-blind)
#3C5B78
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f36c1;
/* rgb */ color: rgb(95, 54, 193);
/* oklch */ color: oklch(46.9% 0.202 289.8);
Tailwind
colors: {
  custom: {
    50: '#9671d5',
    500: '#5f36c1',
    950: '#000000',
  },
}
SCSS
$custom: #5f36c1;
$custom-light: #9671d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f36c1",
  "rgb": {
    "r": 95,
    "g": 54,
    "b": 193
  },
  "hsl": {
    "h": 257.698,
    "s": 56.275,
    "l": 48.431
  },
  "oklch": {
    "l": 0.46927,
    "c": 0.20232,
    "h": 289.8
  },
  "luminance": 0.08921
}

Semantic roles & 50–950 ramp

primary
#5F36C1
secondary
#B7CB88
accent
#E048B3
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F36C1

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

Preview Lab → · Contrast checker → · Palette generator →

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