#5F36D3#5F36D3

#5F36D3 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.5% C 0.223 H 286.8°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#5F36D3
RGBrgb(95, 54, 211)
HSLhsl(256, 64%, 52%)
HSVhsv(256, 74%, 83%)
CMYKcmyk(55%, 74.4%, 0%, 17.3%)
CIE-LABlab(37.43, 55.71, -74.15)
CIE-LCHlch(37.43, 92.75, 306.92°)
OKLaboklab(48.55% 0.0643 -0.2134)
OKLCHoklch(48.55% 0.223 286.8)
XYZxyz(17.7928, 9.7734, 62.5643)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F36D3 #AAD336
analogous
#365BD3 #5F36D3 #AE36D3
triadic
#5F36D3 #D35F36 #36D35F
tetradic
#5F36D3 #D3365B #AAD336 #36D3AE
square
#5F36D3 #D3365B #AAD336 #36D3AE
split-complementary
#5F36D3 #D3AE36 #5BD336
monochromatic
#311A75 #4725A7 #5F36D3 #8768DE #AF9AE9

Accessibility & contrast

On white

7.11
#5F36D3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#5F36D3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F36D3
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F36D3#FFFFFF#000000##FFFFFF
##5F36D31.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD7
Deuteranopia (green-blind)
#0054D0
Tritanopia (blue-blind)
#2B6282
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5f36d3;
/* rgb */ color: rgb(95, 54, 211);
/* oklch */ color: oklch(48.5% 0.223 286.8);
Tailwind
colors: {
  custom: {
    50: '#9872e2',
    500: '#5f36d3',
    950: '#000000',
  },
}
SCSS
$custom: #5f36d3;
$custom-light: #9872e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f36d3",
  "rgb": {
    "r": 95,
    "g": 54,
    "b": 211
  },
  "hsl": {
    "h": 255.669,
    "s": 64.082,
    "l": 51.961
  },
  "oklch": {
    "l": 0.48547,
    "c": 0.22285,
    "h": 286.8
  },
  "luminance": 0.09774
}

Semantic roles & 50–950 ramp

primary
#5F36D3
secondary
#C3D590
accent
#E741BC
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5F36D3

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

Preview Lab → · Contrast checker → · Palette generator →

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