#5F36CA#5F36CA

#5F36CA is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.7% C 0.213 H 288.2°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#5F36CA
RGBrgb(95, 54, 202)
HSLhsl(257, 58%, 50%)
HSVhsv(257, 73%, 79%)
CMYKcmyk(53%, 73.3%, 0%, 20.8%)
CIE-LABlab(36.62, 53.21, -70.26)
CIE-LCHlch(36.62, 88.14, 307.14°)
OKLaboklab(47.73% 0.0664 -0.202)
OKLCHoklch(47.73% 0.213 288.2)
XYZxyz(16.6960, 9.3347, 56.7877)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F36CA #A1CA36
analogous
#3657CA #5F36CA #A936CA
triadic
#5F36CA #CA5F36 #36CA5F
tetradic
#5F36CA #CA3657 #A1CA36 #36CAA9
square
#5F36CA #CA3657 #A1CA36 #36CAA9
split-complementary
#5F36CA #CAA936 #57CA36
monochromatic
#311C6A #48299A #5F36CA #8666D7 #AC97E4

Accessibility & contrast

On white

7.32
#5F36CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5F36CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F36CA
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F36CA#FFFFFF#000000##FFFFFF
##5F36CA1.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CE
Deuteranopia (green-blind)
#0052C7
Tritanopia (blue-blind)
#355E7D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5f36ca;
/* rgb */ color: rgb(95, 54, 202);
/* oklch */ color: oklch(47.7% 0.213 288.2);
Tailwind
colors: {
  custom: {
    50: '#9771db',
    500: '#5f36ca',
    950: '#000000',
  },
}
SCSS
$custom: #5f36ca;
$custom-light: #9771db;
$custom-dark: #000000;
JSON
{
  "hex": "#5f36ca",
  "rgb": {
    "r": 95,
    "g": 54,
    "b": 202
  },
  "hsl": {
    "h": 256.622,
    "s": 58.268,
    "l": 50.196
  },
  "oklch": {
    "l": 0.47727,
    "c": 0.21265,
    "h": 288.2
  },
  "luminance": 0.09335
}

Semantic roles & 50–950 ramp

primary
#5F36CA
secondary
#BDCF8D
accent
#E146B6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5F36CA

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

Preview Lab → · Contrast checker → · Palette generator →

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