#5937BF#5937BF

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

Color values

HEX#5937BF
RGBrgb(89, 55, 191)
HSLhsl(255, 55%, 48%)
HSVhsv(255, 71%, 75%)
CMYKcmyk(53.4%, 71.2%, 0%, 25.1%)
CIE-LABlab(35.24, 48.68, -66.13)
CIE-LCHlch(35.24, 82.11, 306.36°)
OKLaboklab(46.31% 0.0594 -0.1901)
OKLCHoklch(46.31% 0.199 287.3)
XYZxyz(14.8872, 8.6171, 50.1589)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5937BF #9DBF37
analogous
#3759BF #5937BF #9D37BF
triadic
#5937BF #BF5937 #37BF59
tetradic
#5937BF #BF3759 #9DBF37 #37BF9D
square
#5937BF #BF3759 #9DBF37 #37BF9D
split-complementary
#5937BF #BF9D37 #59BF37
monochromatic
#2D1C60 #43298F #5937BF #7E62D2 #A591DF

Accessibility & contrast

On white

7.71
#5937BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5937BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5937BF
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5937BF#FFFFFF#000000##FFFFFF
##5937BF1.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)
#0056C3
Deuteranopia (green-blind)
#004FBC
Tritanopia (blue-blind)
#305B77
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5937bf;
/* rgb */ color: rgb(89, 55, 191);
/* oklch */ color: oklch(46.3% 0.199 287.3);
Tailwind
colors: {
  custom: {
    50: '#9271d3',
    500: '#5937bf',
    950: '#000000',
  },
}
SCSS
$custom: #5937bf;
$custom-light: #9271d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5937bf",
  "rgb": {
    "r": 89,
    "g": 55,
    "b": 191
  },
  "hsl": {
    "h": 255,
    "s": 55.285,
    "l": 48.235
  },
  "oklch": {
    "l": 0.46308,
    "c": 0.19914,
    "h": 287.3
  },
  "luminance": 0.08618
}

Semantic roles & 50–950 ramp

primary
#5937BF
secondary
#BACA88
accent
#DF49B9
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5937BF

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

Preview Lab → · Contrast checker → · Palette generator →

#5937BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva