#5939BE#5939BE

#5939BE is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.5% C 0.196 H 287.2°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#5939BE
RGBrgb(89, 57, 190)
HSLhsl(254, 54%, 48%)
HSVhsv(254, 70%, 75%)
CMYKcmyk(53.2%, 70%, 0%, 25.5%)
CIE-LABlab(35.53, 47.33, -65.05)
CIE-LCHlch(35.53, 80.45, 306.04°)
OKLaboklab(46.49% 0.0578 -0.1869)
OKLCHoklch(46.49% 0.196 287.2)
XYZxyz(14.8745, 8.7671, 49.6137)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5939BE #9EBE39
analogous
#395BBE #5939BE #9B39BE
triadic
#5939BE #BE5939 #39BE59
tetradic
#5939BE #BE395B #9EBE39 #39BE9B
square
#5939BE #BE395B #9EBE39 #39BE9B
split-complementary
#5939BE #BE9B39 #5BBE39
monochromatic
#2D1D60 #432B8F #5939BE #7E64D0 #A593DF

Accessibility & contrast

On white

7.63
#5939BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5939BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5939BE
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5939BE#FFFFFF#000000##FFFFFF
##5939BE1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C2
Deuteranopia (green-blind)
#0050BB
Tritanopia (blue-blind)
#315C77
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5939be;
/* rgb */ color: rgb(89, 57, 190);
/* oklch */ color: oklch(46.5% 0.196 287.2);
Tailwind
colors: {
  custom: {
    50: '#9272d3',
    500: '#5939be',
    950: '#000000',
  },
}
SCSS
$custom: #5939be;
$custom-light: #9272d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5939be",
  "rgb": {
    "r": 89,
    "g": 57,
    "b": 190
  },
  "hsl": {
    "h": 254.436,
    "s": 53.846,
    "l": 48.431
  },
  "oklch": {
    "l": 0.46492,
    "c": 0.19568,
    "h": 287.2
  },
  "luminance": 0.08768
}

Semantic roles & 50–950 ramp

primary
#5939BE
secondary
#BACA89
accent
#DD4BBA
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5939BE

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

Preview Lab → · Contrast checker → · Palette generator →

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