#5F36CE#5F36CE

#5F36CE is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.1% C 0.217 H 287.5°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#5F36CE
RGBrgb(95, 54, 206)
HSLhsl(256, 61%, 51%)
HSVhsv(256, 74%, 81%)
CMYKcmyk(53.9%, 73.8%, 0%, 19.2%)
CIE-LABlab(36.98, 54.32, -72.00)
CIE-LCHlch(36.98, 90.19, 307.03°)
OKLaboklab(48.09% 0.0655 -0.2071)
OKLCHoklch(48.09% 0.217 287.5)
XYZxyz(17.1758, 9.5266, 59.3143)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F36CE #A5CE36
analogous
#3659CE #5F36CE #AB36CE
triadic
#5F36CE #CE5F36 #36CE5F
tetradic
#5F36CE #CE3659 #A5CE36 #36CEAB
square
#5F36CE #CE3659 #A5CE36 #36CEAB
split-complementary
#5F36CE #CEAB36 #59CE36
monochromatic
#321B6F #4827A0 #5F36CE #8667DA #AD98E6

Accessibility & contrast

On white

7.23
#5F36CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5F36CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F36CE
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F36CE#FFFFFF#000000##FFFFFF
##5F36CE1.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD2
Deuteranopia (green-blind)
#0053CB
Tritanopia (blue-blind)
#31607F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f36ce;
/* rgb */ color: rgb(95, 54, 206);
/* oklch */ color: oklch(48.1% 0.217 287.5);
Tailwind
colors: {
  custom: {
    50: '#9871de',
    500: '#5f36ce',
    950: '#000000',
  },
}
SCSS
$custom: #5f36ce;
$custom-light: #9871de;
$custom-dark: #000000;
JSON
{
  "hex": "#5f36ce",
  "rgb": {
    "r": 95,
    "g": 54,
    "b": 206
  },
  "hsl": {
    "h": 256.184,
    "s": 60.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.48089,
    "c": 0.2172,
    "h": 287.5
  },
  "luminance": 0.09527
}

Semantic roles & 50–950 ramp

primary
#5F36CE
secondary
#BFD28E
accent
#E444B9
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #5F36CE

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

Preview Lab → · Contrast checker → · Palette generator →

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