#5939BB#5939BB

#5939BB is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.2% C 0.192 H 287.7°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#5939BB
RGBrgb(89, 57, 187)
HSLhsl(255, 53%, 48%)
HSVhsv(255, 70%, 73%)
CMYKcmyk(52.4%, 69.5%, 0%, 26.7%)
CIE-LABlab(35.28, 46.45, -63.71)
CIE-LCHlch(35.28, 78.84, 306.10°)
OKLaboklab(46.23% 0.0584 -0.183)
OKLCHoklch(46.23% 0.192 287.7)
XYZxyz(14.5500, 8.6372, 47.9046)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5939BB #9BBB39
analogous
#395ABB #5939BB #9A39BB
triadic
#5939BB #BB5939 #39BB59
tetradic
#5939BB #BB395A #9BBB39 #39BB9A
square
#5939BB #BB395A #9BBB39 #39BB9A
split-complementary
#5939BB #BB9A39 #5ABB39
monochromatic
#2C1C5D #432B8C #5939BB #7D62CF #A491DD

Accessibility & contrast

On white

7.70
#5939BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5939BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5939BB
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5939BB#FFFFFF#000000##FFFFFF
##5939BB1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BF
Deuteranopia (green-blind)
#004FB8
Tritanopia (blue-blind)
#335B76
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5939bb;
/* rgb */ color: rgb(89, 57, 187);
/* oklch */ color: oklch(46.2% 0.192 287.7);
Tailwind
colors: {
  custom: {
    50: '#9172d0',
    500: '#5939bb',
    950: '#000000',
  },
}
SCSS
$custom: #5939bb;
$custom-light: #9172d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5939bb",
  "rgb": {
    "r": 89,
    "g": 57,
    "b": 187
  },
  "hsl": {
    "h": 254.769,
    "s": 53.279,
    "l": 47.843
  },
  "oklch": {
    "l": 0.4623,
    "c": 0.19208,
    "h": 287.7
  },
  "luminance": 0.08638
}

Semantic roles & 50–950 ramp

primary
#5939BB
secondary
#B8C887
accent
#DD4BB9
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5939BB

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

Preview Lab → · Contrast checker → · Palette generator →

#5939BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva