#5F37BF#5F37BF

#5F37BF is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.9% C 0.199 H 290.0°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#5F37BF
RGBrgb(95, 55, 191)
HSLhsl(258, 55%, 48%)
HSVhsv(258, 71%, 75%)
CMYKcmyk(50.3%, 71.2%, 0%, 25.1%)
CIE-LABlab(35.84, 49.64, -65.11)
CIE-LCHlch(35.84, 81.87, 307.32°)
OKLaboklab(46.88% 0.068 -0.1869)
OKLCHoklch(46.88% 0.199 290)
XYZxyz(15.4868, 8.9262, 50.1870)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F37BF #97BF37
analogous
#3753BF #5F37BF #A337BF
triadic
#5F37BF #BF5F37 #37BF5F
tetradic
#5F37BF #BF3753 #97BF37 #37BFA3
square
#5F37BF #BF3753 #97BF37 #37BFA3
split-complementary
#5F37BF #BFA337 #53BF37
monochromatic
#301C60 #47298F #5F37BF #8362D2 #A891DF

Accessibility & contrast

On white

7.54
#5F37BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F37BF
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F37BF#FFFFFF#000000##FFFFFF
##5F37BF1.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C3
Deuteranopia (green-blind)
#0051BC
Tritanopia (blue-blind)
#3E5B77
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f37bf;
/* rgb */ color: rgb(95, 55, 191);
/* oklch */ color: oklch(46.9% 0.199 290.0);
Tailwind
colors: {
  custom: {
    50: '#9571d3',
    500: '#5f37bf',
    950: '#000000',
  },
}
SCSS
$custom: #5f37bf;
$custom-light: #9571d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f37bf",
  "rgb": {
    "r": 95,
    "g": 55,
    "b": 191
  },
  "hsl": {
    "h": 257.647,
    "s": 55.285,
    "l": 48.235
  },
  "oklch": {
    "l": 0.46882,
    "c": 0.19889,
    "h": 290
  },
  "luminance": 0.08927
}

Semantic roles & 50–950 ramp

primary
#5F37BF
secondary
#B7CA88
accent
#DF49B3
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F37BF

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

Preview Lab → · Contrast checker → · Palette generator →

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