#5939BD#5939BD

#5939BD is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.4% C 0.194 H 287.4°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#5939BD
RGBrgb(89, 57, 189)
HSLhsl(255, 54%, 48%)
HSVhsv(255, 70%, 74%)
CMYKcmyk(52.9%, 69.8%, 0%, 25.9%)
CIE-LABlab(35.45, 47.03, -64.61)
CIE-LCHlch(35.45, 79.91, 306.06°)
OKLaboklab(46.4% 0.058 -0.1856)
OKLCHoklch(46.4% 0.194 287.4)
XYZxyz(14.7655, 8.7235, 49.0400)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5939BD #9DBD39
analogous
#395BBD #5939BD #9B39BD
triadic
#5939BD #BD5939 #39BD59
tetradic
#5939BD #BD395B #9DBD39 #39BD9B
square
#5939BD #BD395B #9DBD39 #39BD9B
split-complementary
#5939BD #BD9B39 #5BBD39
monochromatic
#2D1D5F #432B8E #5939BD #7E63D0 #A592DE

Accessibility & contrast

On white

7.65
#5939BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5939BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5939BD
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5939BD#FFFFFF#000000##FFFFFF
##5939BD1.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C1
Deuteranopia (green-blind)
#0050BA
Tritanopia (blue-blind)
#325B77
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5939bd;
/* rgb */ color: rgb(89, 57, 189);
/* oklch */ color: oklch(46.4% 0.194 287.4);
Tailwind
colors: {
  custom: {
    50: '#9172d2',
    500: '#5939bd',
    950: '#000000',
  },
}
SCSS
$custom: #5939bd;
$custom-light: #9172d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5939bd",
  "rgb": {
    "r": 89,
    "g": 57,
    "b": 189
  },
  "hsl": {
    "h": 254.545,
    "s": 53.659,
    "l": 48.235
  },
  "oklch": {
    "l": 0.46404,
    "c": 0.19449,
    "h": 287.4
  },
  "luminance": 0.08724
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5939BD

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

Preview Lab → · Contrast checker → · Palette generator →

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