#5F36B8#5F36B8

#5F36B8 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.1% C 0.192 H 291.5°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#5F36B8
RGBrgb(95, 54, 184)
HSLhsl(259, 55%, 47%)
HSVhsv(259, 71%, 72%)
CMYKcmyk(48.4%, 70.7%, 0%, 27.8%)
CIE-LABlab(35.07, 48.20, -62.26)
CIE-LCHlch(35.07, 78.73, 307.75°)
OKLaboklab(46.15% 0.0703 -0.1785)
OKLCHoklch(46.15% 0.192 291.5)
XYZxyz(14.6878, 8.5314, 46.2109)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F36B8 #8FB836
analogous
#364EB8 #5F36B8 #A036B8
triadic
#5F36B8 #B85F36 #36B85F
tetradic
#5F36B8 #B8364E #8FB836 #36B8A0
square
#5F36B8 #B8364E #8FB836 #36B8A0
split-complementary
#5F36B8 #B8A036 #4EB836
monochromatic
#2E1A59 #472889 #5F36B8 #805CCF #A58BDD

Accessibility & contrast

On white

7.76
#5F36B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5F36B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F36B8
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F36B8#FFFFFF#000000##FFFFFF
##5F36B81.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BC
Deuteranopia (green-blind)
#0050B5
Tritanopia (blue-blind)
#425773
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5f36b8;
/* rgb */ color: rgb(95, 54, 184);
/* oklch */ color: oklch(46.1% 0.192 291.5);
Tailwind
colors: {
  custom: {
    50: '#9470ce',
    500: '#5f36b8',
    950: '#000000',
  },
}
SCSS
$custom: #5f36b8;
$custom-light: #9470ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5f36b8",
  "rgb": {
    "r": 95,
    "g": 54,
    "b": 184
  },
  "hsl": {
    "h": 258.923,
    "s": 54.622,
    "l": 46.667
  },
  "oklch": {
    "l": 0.46147,
    "c": 0.19186,
    "h": 291.5
  },
  "luminance": 0.08532
}

Semantic roles & 50–950 ramp

primary
#5F36B8
secondary
#B2C782
accent
#DE4AAF
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5F36B8

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

Preview Lab → · Contrast checker → · Palette generator →

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