#5939BC#5939BC

#5939BC is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.3% C 0.193 H 287.5°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#5939BC
RGBrgb(89, 57, 188)
HSLhsl(255, 53%, 48%)
HSVhsv(255, 70%, 74%)
CMYKcmyk(52.7%, 69.7%, 0%, 26.3%)
CIE-LABlab(35.36, 46.74, -64.16)
CIE-LCHlch(35.36, 79.38, 306.08°)
OKLaboklab(46.32% 0.0582 -0.1843)
OKLCHoklch(46.32% 0.193 287.5)
XYZxyz(14.6574, 8.6802, 48.4703)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5939BC #9CBC39
analogous
#395BBC #5939BC #9A39BC
triadic
#5939BC #BC5939 #39BC59
tetradic
#5939BC #BC395B #9CBC39 #39BC9A
square
#5939BC #BC395B #9CBC39 #39BC9A
split-complementary
#5939BC #BC9A39 #5BBC39
monochromatic
#2D1D5E #432B8D #5939BC #7D63D0 #A492DE

Accessibility & contrast

On white

7.67
#5939BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5939BC
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5939BC#FFFFFF#000000##FFFFFF
##5939BC1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C0
Deuteranopia (green-blind)
#0050B9
Tritanopia (blue-blind)
#325B76
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5939bc;
/* rgb */ color: rgb(89, 57, 188);
/* oklch */ color: oklch(46.3% 0.193 287.5);
Tailwind
colors: {
  custom: {
    50: '#9172d1',
    500: '#5939bc',
    950: '#000000',
  },
}
SCSS
$custom: #5939bc;
$custom-light: #9172d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5939bc",
  "rgb": {
    "r": 89,
    "g": 57,
    "b": 188
  },
  "hsl": {
    "h": 254.656,
    "s": 53.469,
    "l": 48.039
  },
  "oklch": {
    "l": 0.46317,
    "c": 0.19328,
    "h": 287.5
  },
  "luminance": 0.08681
}

Semantic roles & 50–950 ramp

primary
#5939BC
secondary
#B9C988
accent
#DD4BB9
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5939BC

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

Preview Lab → · Contrast checker → · Palette generator →

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