#5F36D4#5F36D4

#5F36D4 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.6% C 0.224 H 286.6°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#5F36D4
RGBrgb(95, 54, 212)
HSLhsl(256, 65%, 52%)
HSVhsv(256, 75%, 83%)
CMYKcmyk(55.2%, 74.5%, 0%, 16.9%)
CIE-LABlab(37.52, 55.99, -74.57)
CIE-LCHlch(37.52, 93.25, 306.90°)
OKLaboklab(48.64% 0.064 -0.2146)
OKLCHoklch(48.64% 0.224 286.6)
XYZxyz(17.9186, 9.8237, 63.2266)
Luminance0.0983 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F36D4 #ABD436
analogous
#365CD4 #5F36D4 #AE36D4
triadic
#5F36D4 #D45F36 #36D45F
tetradic
#5F36D4 #D4365C #ABD436 #36D4AE
square
#5F36D4 #D4365C #ABD436 #36D4AE
split-complementary
#5F36D4 #D4AE36 #5CD436
monochromatic
#311976 #4724A9 #5F36D4 #8768DF #AF9BEA

Accessibility & contrast

On white

7.08
#5F36D4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F36D4
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F36D4#FFFFFF#000000##FFFFFF
##5F36D41.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD9
Deuteranopia (green-blind)
#0054D1
Tritanopia (blue-blind)
#2A6283
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5f36d4;
/* rgb */ color: rgb(95, 54, 212);
/* oklch */ color: oklch(48.6% 0.224 286.6);
Tailwind
colors: {
  custom: {
    50: '#9872e2',
    500: '#5f36d4',
    950: '#000000',
  },
}
SCSS
$custom: #5f36d4;
$custom-light: #9872e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f36d4",
  "rgb": {
    "r": 95,
    "g": 54,
    "b": 212
  },
  "hsl": {
    "h": 255.57,
    "s": 64.754,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48639,
    "c": 0.22397,
    "h": 286.6
  },
  "luminance": 0.09825
}

Semantic roles & 50–950 ramp

primary
#5F36D4
secondary
#C3D590
accent
#E840BC
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5F36D4

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

Preview Lab → · Contrast checker → · Palette generator →

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