#5939BF#5939BF

#5939BF is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.6% C 0.197 H 287.0°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#5939BF
RGBrgb(89, 57, 191)
HSLhsl(254, 54%, 49%)
HSVhsv(254, 70%, 75%)
CMYKcmyk(53.4%, 70.2%, 0%, 25.1%)
CIE-LABlab(35.62, 47.62, -65.50)
CIE-LCHlch(35.62, 80.98, 306.02°)
OKLaboklab(46.58% 0.0577 -0.1883)
OKLCHoklch(46.58% 0.197 287)
XYZxyz(14.9841, 8.8109, 50.1912)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5939BF #9FBF39
analogous
#395CBF #5939BF #9C39BF
triadic
#5939BF #BF5939 #39BF59
tetradic
#5939BF #BF395C #9FBF39 #39BF9C
square
#5939BF #BF395C #9FBF39 #39BF9C
split-complementary
#5939BF #BF9C39 #5CBF39
monochromatic
#2D1D61 #432B90 #5939BF #7E64D1 #A593DF

Accessibility & contrast

On white

7.60
#5939BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5939BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5939BF
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5939BF#FFFFFF#000000##FFFFFF
##5939BF1.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C3
Deuteranopia (green-blind)
#0050BC
Tritanopia (blue-blind)
#305C78
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5939bf;
/* rgb */ color: rgb(89, 57, 191);
/* oklch */ color: oklch(46.6% 0.197 287.0);
Tailwind
colors: {
  custom: {
    50: '#9272d3',
    500: '#5939bf',
    950: '#000000',
  },
}
SCSS
$custom: #5939bf;
$custom-light: #9272d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5939bf",
  "rgb": {
    "r": 89,
    "g": 57,
    "b": 191
  },
  "hsl": {
    "h": 254.328,
    "s": 54.032,
    "l": 48.627
  },
  "oklch": {
    "l": 0.46579,
    "c": 0.19689,
    "h": 287
  },
  "luminance": 0.08812
}

Semantic roles & 50–950 ramp

primary
#5939BF
secondary
#BBCA8A
accent
#DD4ABA
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5939BF

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

Preview Lab → · Contrast checker → · Palette generator →

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