#5839BD#5839BD

#5839BD is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.3% C 0.195 H 286.9°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#5839BD
RGBrgb(88, 57, 189)
HSLhsl(254, 54%, 48%)
HSVhsv(254, 70%, 74%)
CMYKcmyk(53.4%, 69.8%, 0%, 25.9%)
CIE-LABlab(35.35, 46.87, -64.77)
CIE-LCHlch(35.35, 79.95, 305.89°)
OKLaboklab(46.31% 0.0566 -0.1861)
OKLCHoklch(46.31% 0.195 286.9)
XYZxyz(14.6702, 8.6743, 49.0356)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5839BD #9EBD39
analogous
#395CBD #5839BD #9A39BD
triadic
#5839BD #BD5839 #39BD58
tetradic
#5839BD #BD395C #9EBD39 #39BD9A
square
#5839BD #BD395C #9EBD39 #39BD9A
split-complementary
#5839BD #BD9A39 #5CBD39
monochromatic
#2C1D5F #422B8E #5839BD #7D63D0 #A492DE

Accessibility & contrast

On white

7.68
#5839BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5839BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5839BD
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5839BD#FFFFFF#000000##FFFFFF
##5839BD1.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C1
Deuteranopia (green-blind)
#004FBA
Tritanopia (blue-blind)
#2F5B77
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5839bd;
/* rgb */ color: rgb(88, 57, 189);
/* oklch */ color: oklch(46.3% 0.195 286.9);
Tailwind
colors: {
  custom: {
    50: '#9172d2',
    500: '#5839bd',
    950: '#000000',
  },
}
SCSS
$custom: #5839bd;
$custom-light: #9172d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5839bd",
  "rgb": {
    "r": 88,
    "g": 57,
    "b": 189
  },
  "hsl": {
    "h": 254.091,
    "s": 53.659,
    "l": 48.235
  },
  "oklch": {
    "l": 0.46312,
    "c": 0.19456,
    "h": 286.9
  },
  "luminance": 0.08675
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5839BD

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

Preview Lab → · Contrast checker → · Palette generator →

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