#5F36CF#5F36CF

#5F36CF is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.2% C 0.218 H 287.4°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#5F36CF
RGBrgb(95, 54, 207)
HSLhsl(256, 61%, 51%)
HSVhsv(256, 74%, 81%)
CMYKcmyk(54.1%, 73.9%, 0%, 18.8%)
CIE-LABlab(37.07, 54.60, -72.43)
CIE-LCHlch(37.07, 90.70, 307.01°)
OKLaboklab(48.18% 0.0652 -0.2083)
OKLCHoklch(48.18% 0.218 287.4)
XYZxyz(17.2976, 9.5753, 59.9562)
Luminance0.0958 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F36CF #A6CF36
analogous
#3659CF #5F36CF #AB36CF
triadic
#5F36CF #CF5F36 #36CF5F
tetradic
#5F36CF #CF3659 #A6CF36 #36CFAB
square
#5F36CF #CF3659 #A6CF36 #36CFAB
split-complementary
#5F36CF #CFAB36 #59CF36
monochromatic
#321B70 #4727A1 #5F36CF #8667DB #AE99E7

Accessibility & contrast

On white

7.20
#5F36CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5F36CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F36CF
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F36CF#FFFFFF#000000##FFFFFF
##5F36CF1.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD3
Deuteranopia (green-blind)
#0053CC
Tritanopia (blue-blind)
#306080
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f36cf;
/* rgb */ color: rgb(95, 54, 207);
/* oklch */ color: oklch(48.2% 0.218 287.4);
Tailwind
colors: {
  custom: {
    50: '#9871df',
    500: '#5f36cf',
    950: '#000000',
  },
}
SCSS
$custom: #5f36cf;
$custom-light: #9871df;
$custom-dark: #000000;
JSON
{
  "hex": "#5f36cf",
  "rgb": {
    "r": 95,
    "g": 54,
    "b": 207
  },
  "hsl": {
    "h": 256.078,
    "s": 61.446,
    "l": 51.176
  },
  "oklch": {
    "l": 0.4818,
    "c": 0.21833,
    "h": 287.4
  },
  "luminance": 0.09576
}

Semantic roles & 50–950 ramp

primary
#5F36CF
secondary
#C0D28F
accent
#E543B9
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #5F36CF

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

Preview Lab → · Contrast checker → · Palette generator →

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