#5937BC#5937BC

#5937BC is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.0% C 0.196 H 287.9°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#5937BC
RGBrgb(89, 55, 188)
HSLhsl(255, 55%, 48%)
HSVhsv(255, 71%, 74%)
CMYKcmyk(52.7%, 70.7%, 0%, 26.3%)
CIE-LABlab(34.98, 47.81, -64.79)
CIE-LCHlch(34.98, 80.52, 306.43°)
OKLaboklab(46.04% 0.06 -0.1861)
OKLCHoklch(46.04% 0.196 287.9)
XYZxyz(14.5604, 8.4864, 48.4380)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5937BC #9ABC37
analogous
#3758BC #5937BC #9B37BC
triadic
#5937BC #BC5937 #37BC59
tetradic
#5937BC #BC3758 #9ABC37 #37BC9B
square
#5937BC #BC3758 #9ABC37 #37BC9B
split-complementary
#5937BC #BC9B37 #58BC37
monochromatic
#2C1B5D #43298D #5937BC #7D60D0 #A38FDE

Accessibility & contrast

On white

7.79
#5937BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5937BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5937BC
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5937BC#FFFFFF#000000##FFFFFF
##5937BC1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C0
Deuteranopia (green-blind)
#004FB9
Tritanopia (blue-blind)
#335A76
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5937bc;
/* rgb */ color: rgb(89, 55, 188);
/* oklch */ color: oklch(46.0% 0.196 287.9);
Tailwind
colors: {
  custom: {
    50: '#9171d1',
    500: '#5937bc',
    950: '#000000',
  },
}
SCSS
$custom: #5937bc;
$custom-light: #9171d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5937bc",
  "rgb": {
    "r": 89,
    "g": 55,
    "b": 188
  },
  "hsl": {
    "h": 255.338,
    "s": 54.733,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46043,
    "c": 0.19557,
    "h": 287.9
  },
  "luminance": 0.08487
}

Semantic roles & 50–950 ramp

primary
#5937BC
secondary
#B8C986
accent
#DE4AB8
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5937BC

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

Preview Lab → · Contrast checker → · Palette generator →

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