#5F36BA#5F36BA

#5F36BA is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.3% C 0.194 H 291.1°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#5F36BA
RGBrgb(95, 54, 186)
HSLhsl(259, 55%, 47%)
HSVhsv(259, 71%, 73%)
CMYKcmyk(48.9%, 71%, 0%, 27.1%)
CIE-LABlab(35.23, 48.76, -63.16)
CIE-LCHlch(35.23, 79.79, 307.67°)
OKLaboklab(46.32% 0.0699 -0.1812)
OKLCHoklch(46.32% 0.194 291.1)
XYZxyz(14.8989, 8.6158, 47.3229)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F36BA #91BA36
analogous
#364FBA #5F36BA #A136BA
triadic
#5F36BA #BA5F36 #36BA5F
tetradic
#5F36BA #BA364F #91BA36 #36BAA1
square
#5F36BA #BA364F #91BA36 #36BAA1
split-complementary
#5F36BA #BAA136 #4FBA36
monochromatic
#2F1A5B #47288B #5F36BA #815DD0 #A68DDE

Accessibility & contrast

On white

7.71
#5F36BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5F36BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F36BA
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F36BA#FFFFFF#000000##FFFFFF
##5F36BA1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BE
Deuteranopia (green-blind)
#0050B7
Tritanopia (blue-blind)
#415874
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f36ba;
/* rgb */ color: rgb(95, 54, 186);
/* oklch */ color: oklch(46.3% 0.194 291.1);
Tailwind
colors: {
  custom: {
    50: '#9570d0',
    500: '#5f36ba',
    950: '#000000',
  },
}
SCSS
$custom: #5f36ba;
$custom-light: #9570d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f36ba",
  "rgb": {
    "r": 95,
    "g": 54,
    "b": 186
  },
  "hsl": {
    "h": 258.636,
    "s": 55,
    "l": 47.059
  },
  "oklch": {
    "l": 0.46319,
    "c": 0.1942,
    "h": 291.1
  },
  "luminance": 0.08616
}

Semantic roles & 50–950 ramp

primary
#5F36BA
secondary
#B3C884
accent
#DE49B0
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5F36BA

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

Preview Lab → · Contrast checker → · Palette generator →

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