#5F36CC#5F36CC

#5F36CC is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.9% C 0.215 H 287.9°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#5F36CC
RGBrgb(95, 54, 204)
HSLhsl(256, 60%, 51%)
HSVhsv(256, 74%, 80%)
CMYKcmyk(53.4%, 73.5%, 0%, 20%)
CIE-LABlab(36.80, 53.77, -71.13)
CIE-LCHlch(36.80, 89.17, 307.08°)
OKLaboklab(47.91% 0.066 -0.2046)
OKLCHoklch(47.91% 0.215 287.9)
XYZxyz(16.9343, 9.4300, 58.0429)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F36CC #A3CC36
analogous
#3658CC #5F36CC #AA36CC
triadic
#5F36CC #CC5F36 #36CC5F
tetradic
#5F36CC #CC3658 #A3CC36 #36CCAA
square
#5F36CC #CC3658 #A3CC36 #36CCAA
split-complementary
#5F36CC #CCAA36 #58CC36
monochromatic
#321B6C #48289D #5F36CC #8667D8 #AD98E5

Accessibility & contrast

On white

7.28
#5F36CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5F36CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F36CC
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F36CC#FFFFFF#000000##FFFFFF
##5F36CC1.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD0
Deuteranopia (green-blind)
#0053C9
Tritanopia (blue-blind)
#335F7E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f36cc;
/* rgb */ color: rgb(95, 54, 204);
/* oklch */ color: oklch(47.9% 0.215 287.9);
Tailwind
colors: {
  custom: {
    50: '#9771dd',
    500: '#5f36cc',
    950: '#000000',
  },
}
SCSS
$custom: #5f36cc;
$custom-light: #9771dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f36cc",
  "rgb": {
    "r": 95,
    "g": 54,
    "b": 204
  },
  "hsl": {
    "h": 256.4,
    "s": 59.524,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47908,
    "c": 0.21493,
    "h": 287.9
  },
  "luminance": 0.09431
}

Semantic roles & 50–950 ramp

primary
#5F36CC
secondary
#BED08E
accent
#E345B8
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #5F36CC

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

Preview Lab → · Contrast checker → · Palette generator →

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