#5F36C2#5F36C2

#5F36C2 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.0% C 0.203 H 289.6°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#5F36C2
RGBrgb(95, 54, 194)
HSLhsl(258, 56%, 49%)
HSVhsv(258, 72%, 76%)
CMYKcmyk(51%, 72.2%, 0%, 23.9%)
CIE-LABlab(35.92, 50.98, -66.74)
CIE-LCHlch(35.92, 83.99, 307.37°)
OKLaboklab(47.02% 0.0682 -0.1917)
OKLCHoklch(47.02% 0.203 289.6)
XYZxyz(15.7733, 8.9656, 51.9279)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F36C2 #99C236
analogous
#3653C2 #5F36C2 #A536C2
triadic
#5F36C2 #C25F36 #36C25F
tetradic
#5F36C2 #C23653 #99C236 #36C2A5
square
#5F36C2 #C23653 #99C236 #36C2A5
split-complementary
#5F36C2 #C2A536 #53C236
monochromatic
#301B62 #482992 #5F36C2 #8362D3 #A992E1

Accessibility & contrast

On white

7.52
#5F36C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5F36C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F36C2
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F36C2#FFFFFF#000000##FFFFFF
##5F36C21.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C6
Deuteranopia (green-blind)
#0051BF
Tritanopia (blue-blind)
#3B5B79
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f36c2;
/* rgb */ color: rgb(95, 54, 194);
/* oklch */ color: oklch(47.0% 0.203 289.6);
Tailwind
colors: {
  custom: {
    50: '#9671d6',
    500: '#5f36c2',
    950: '#000000',
  },
}
SCSS
$custom: #5f36c2;
$custom-light: #9671d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f36c2",
  "rgb": {
    "r": 95,
    "g": 54,
    "b": 194
  },
  "hsl": {
    "h": 257.571,
    "s": 56.452,
    "l": 48.627
  },
  "oklch": {
    "l": 0.47015,
    "c": 0.20347,
    "h": 289.6
  },
  "luminance": 0.08966
}

Semantic roles & 50–950 ramp

primary
#5F36C2
secondary
#B8CC88
accent
#E048B3
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F36C2

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

Preview Lab → · Contrast checker → · Palette generator →

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