#5F36D5#5F36D5

#5F36D5 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.7% C 0.225 H 286.5°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#5F36D5
RGBrgb(95, 54, 213)
HSLhsl(255, 65%, 52%)
HSVhsv(255, 75%, 84%)
CMYKcmyk(55.4%, 74.6%, 0%, 16.5%)
CIE-LABlab(37.62, 56.27, -75.00)
CIE-LCHlch(37.62, 93.76, 306.88°)
OKLaboklab(48.73% 0.0638 -0.2159)
OKLCHoklch(48.73% 0.225 286.5)
XYZxyz(18.0451, 9.8743, 63.8930)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F36D5 #ACD536
analogous
#365CD5 #5F36D5 #AF36D5
triadic
#5F36D5 #D55F36 #36D55F
tetradic
#5F36D5 #D5365C #ACD536 #36D5AF
square
#5F36D5 #D5365C #ACD536 #36D5AF
split-complementary
#5F36D5 #D5AF36 #5CD536
monochromatic
#311978 #4624AA #5F36D5 #8769E0 #B09BEA

Accessibility & contrast

On white

7.06
#5F36D5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#5F36D5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F36D5
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F36D5#FFFFFF#000000##FFFFFF
##5F36D51.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CDA
Deuteranopia (green-blind)
#0054D2
Tritanopia (blue-blind)
#296383
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5f36d5;
/* rgb */ color: rgb(95, 54, 213);
/* oklch */ color: oklch(48.7% 0.225 286.5);
Tailwind
colors: {
  custom: {
    50: '#9972e3',
    500: '#5f36d5',
    950: '#000000',
  },
}
SCSS
$custom: #5f36d5;
$custom-light: #9972e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f36d5",
  "rgb": {
    "r": 95,
    "g": 54,
    "b": 213
  },
  "hsl": {
    "h": 255.472,
    "s": 65.432,
    "l": 52.353
  },
  "oklch": {
    "l": 0.48731,
    "c": 0.2251,
    "h": 286.5
  },
  "luminance": 0.09875
}

Semantic roles & 50–950 ramp

primary
#5F36D5
secondary
#C4D691
accent
#E83FBD
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5F36D5

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

Preview Lab → · Contrast checker → · Palette generator →

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