#5839BB#5839BB

#5839BB is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.1% C 0.192 H 287.2°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#5839BB
RGBrgb(88, 57, 187)
HSLhsl(254, 53%, 48%)
HSVhsv(254, 70%, 73%)
CMYKcmyk(52.9%, 69.5%, 0%, 26.7%)
CIE-LABlab(35.18, 46.29, -63.87)
CIE-LCHlch(35.18, 78.88, 305.93°)
OKLaboklab(46.14% 0.057 -0.1835)
OKLCHoklch(46.14% 0.192 287.2)
XYZxyz(14.4546, 8.5881, 47.9001)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5839BB #9CBB39
analogous
#395BBB #5839BB #9939BB
triadic
#5839BB #BB5839 #39BB58
tetradic
#5839BB #BB395B #9CBB39 #39BB99
square
#5839BB #BB395B #9CBB39 #39BB99
split-complementary
#5839BB #BB9939 #5BBB39
monochromatic
#2C1C5D #422B8C #5839BB #7C62CF #A391DD

Accessibility & contrast

On white

7.73
#5839BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5839BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5839BB
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5839BB#FFFFFF#000000##FFFFFF
##5839BB1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BF
Deuteranopia (green-blind)
#004FB8
Tritanopia (blue-blind)
#315B76
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5839bb;
/* rgb */ color: rgb(88, 57, 187);
/* oklch */ color: oklch(46.1% 0.192 287.2);
Tailwind
colors: {
  custom: {
    50: '#9172d0',
    500: '#5839bb',
    950: '#000000',
  },
}
SCSS
$custom: #5839bb;
$custom-light: #9172d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5839bb",
  "rgb": {
    "r": 88,
    "g": 57,
    "b": 187
  },
  "hsl": {
    "h": 254.308,
    "s": 53.279,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46137,
    "c": 0.19214,
    "h": 287.2
  },
  "luminance": 0.08589
}

Semantic roles & 50–950 ramp

primary
#5839BB
secondary
#B9C887
accent
#DD4BBA
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5839BB

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

Preview Lab → · Contrast checker → · Palette generator →

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