#5939B9#5939B9

#5939B9 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.1% C 0.190 H 288.0°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#5939B9
RGBrgb(89, 57, 185)
HSLhsl(255, 53%, 47%)
HSVhsv(255, 69%, 73%)
CMYKcmyk(51.9%, 69.2%, 0%, 27.5%)
CIE-LABlab(35.11, 45.87, -62.80)
CIE-LCHlch(35.11, 77.77, 306.14°)
OKLaboklab(46.06% 0.0587 -0.1803)
OKLCHoklch(46.06% 0.19 288)
XYZxyz(14.3373, 8.5522, 46.7848)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5939B9 #99B939
analogous
#3959B9 #5939B9 #9939B9
triadic
#5939B9 #B95939 #39B959
tetradic
#5939B9 #B93959 #99B939 #39B999
square
#5939B9 #B93959 #99B939 #39B999
split-complementary
#5939B9 #B99939 #59B939
monochromatic
#2C1C5B #422B8A #5939B9 #7C61CE #A390DD

Accessibility & contrast

On white

7.75
#5939B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5939B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5939B9
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5939B9#FFFFFF#000000##FFFFFF
##5939B91.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BD
Deuteranopia (green-blind)
#004FB6
Tritanopia (blue-blind)
#355A74
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5939b9;
/* rgb */ color: rgb(89, 57, 185);
/* oklch */ color: oklch(46.1% 0.190 288.0);
Tailwind
colors: {
  custom: {
    50: '#9172cf',
    500: '#5939b9',
    950: '#000000',
  },
}
SCSS
$custom: #5939b9;
$custom-light: #9172cf;
$custom-dark: #000000;
JSON
{
  "hex": "#5939b9",
  "rgb": {
    "r": 89,
    "g": 57,
    "b": 185
  },
  "hsl": {
    "h": 255,
    "s": 52.893,
    "l": 47.451
  },
  "oklch": {
    "l": 0.46058,
    "c": 0.18967,
    "h": 288
  },
  "luminance": 0.08553
}

Semantic roles & 50–950 ramp

primary
#5939B9
secondary
#B7C886
accent
#DC4BB8
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5939B9

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

Preview Lab → · Contrast checker → · Palette generator →

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