#5F36C8#5F36C8

#5F36C8 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.5% C 0.210 H 288.5°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#5F36C8
RGBrgb(95, 54, 200)
HSLhsl(257, 57%, 50%)
HSVhsv(257, 73%, 78%)
CMYKcmyk(52.5%, 73%, 0%, 21.6%)
CIE-LABlab(36.44, 52.65, -69.39)
CIE-LCHlch(36.44, 87.10, 307.19°)
OKLaboklab(47.55% 0.0669 -0.1994)
OKLCHoklch(47.55% 0.21 288.5)
XYZxyz(16.4608, 9.2406, 55.5486)
Luminance0.0924 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F36C8 #9FC836
analogous
#3656C8 #5F36C8 #A836C8
triadic
#5F36C8 #C85F36 #36C85F
tetradic
#5F36C8 #C83656 #9FC836 #36C8A8
square
#5F36C8 #C83656 #9FC836 #36C8A8
split-complementary
#5F36C8 #C8A836 #56C836
monochromatic
#311C68 #482998 #5F36C8 #8566D6 #AB96E3

Accessibility & contrast

On white

7.37
#5F36C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5F36C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F36C8
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F36C8#FFFFFF#000000##FFFFFF
##5F36C81.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CC
Deuteranopia (green-blind)
#0052C5
Tritanopia (blue-blind)
#375D7C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5f36c8;
/* rgb */ color: rgb(95, 54, 200);
/* oklch */ color: oklch(47.5% 0.210 288.5);
Tailwind
colors: {
  custom: {
    50: '#9771da',
    500: '#5f36c8',
    950: '#000000',
  },
}
SCSS
$custom: #5f36c8;
$custom-light: #9771da;
$custom-dark: #000000;
JSON
{
  "hex": "#5f36c8",
  "rgb": {
    "r": 95,
    "g": 54,
    "b": 200
  },
  "hsl": {
    "h": 256.849,
    "s": 57.48,
    "l": 49.804
  },
  "oklch": {
    "l": 0.47548,
    "c": 0.21037,
    "h": 288.5
  },
  "luminance": 0.09241
}

Semantic roles & 50–950 ramp

primary
#5F36C8
secondary
#BBCE8C
accent
#E147B6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5F36C8

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

Preview Lab → · Contrast checker → · Palette generator →

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