#5F36BD#5F36BD

#5F36BD is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.6% C 0.198 H 290.5°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#5F36BD
RGBrgb(95, 54, 189)
HSLhsl(258, 56%, 48%)
HSVhsv(258, 71%, 74%)
CMYKcmyk(49.7%, 71.4%, 0%, 25.9%)
CIE-LABlab(35.49, 49.59, -64.51)
CIE-LCHlch(35.49, 81.37, 307.55°)
OKLaboklab(46.58% 0.0693 -0.1851)
OKLCHoklch(46.58% 0.198 290.5)
XYZxyz(15.2212, 8.7447, 49.0201)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F36BD #94BD36
analogous
#3651BD #5F36BD #A236BD
triadic
#5F36BD #BD5F36 #36BD5F
tetradic
#5F36BD #BD3651 #94BD36 #36BDA2
square
#5F36BD #BD3651 #94BD36 #36BDA2
split-complementary
#5F36BD #BDA236 #51BD36
monochromatic
#2F1B5E #47288D #5F36BD #825FD1 #A78FDF

Accessibility & contrast

On white

7.64
#5F36BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5F36BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F36BD
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F36BD#FFFFFF#000000##FFFFFF
##5F36BD1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C1
Deuteranopia (green-blind)
#0050BA
Tritanopia (blue-blind)
#3F5976
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f36bd;
/* rgb */ color: rgb(95, 54, 189);
/* oklch */ color: oklch(46.6% 0.198 290.5);
Tailwind
colors: {
  custom: {
    50: '#9571d2',
    500: '#5f36bd',
    950: '#000000',
  },
}
SCSS
$custom: #5f36bd;
$custom-light: #9571d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f36bd",
  "rgb": {
    "r": 95,
    "g": 54,
    "b": 189
  },
  "hsl": {
    "h": 258.222,
    "s": 55.556,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46578,
    "c": 0.19769,
    "h": 290.5
  },
  "luminance": 0.08745
}

Semantic roles & 50–950 ramp

primary
#5F36BD
secondary
#B5C985
accent
#DF49B1
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F36BD

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

Preview Lab → · Contrast checker → · Palette generator →

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