#5839BE#5839BE

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

Color values

HEX#5839BE
RGBrgb(88, 57, 190)
HSLhsl(254, 54%, 48%)
HSVhsv(254, 70%, 75%)
CMYKcmyk(53.7%, 70%, 0%, 25.5%)
CIE-LABlab(35.44, 47.16, -65.22)
CIE-LCHlch(35.44, 80.48, 305.87°)
OKLaboklab(46.4% 0.0564 -0.1874)
OKLCHoklch(46.4% 0.196 286.8)
XYZxyz(14.7791, 8.7179, 49.6092)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5839BE #9FBE39
analogous
#395CBE #5839BE #9A39BE
triadic
#5839BE #BE5839 #39BE58
tetradic
#5839BE #BE395C #9FBE39 #39BE9A
square
#5839BE #BE395C #9FBE39 #39BE9A
split-complementary
#5839BE #BE9A39 #5CBE39
monochromatic
#2C1D60 #422B8F #5839BE #7D64D0 #A493DF

Accessibility & contrast

On white

7.65
#5839BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5839BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5839BE
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5839BE#FFFFFF#000000##FFFFFF
##5839BE1.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)
#0057C2
Deuteranopia (green-blind)
#0050BB
Tritanopia (blue-blind)
#2E5C77
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5839be;
/* rgb */ color: rgb(88, 57, 190);
/* oklch */ color: oklch(46.4% 0.196 286.8);
Tailwind
colors: {
  custom: {
    50: '#9172d3',
    500: '#5839be',
    950: '#000000',
  },
}
SCSS
$custom: #5839be;
$custom-light: #9172d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5839be",
  "rgb": {
    "r": 88,
    "g": 57,
    "b": 190
  },
  "hsl": {
    "h": 253.985,
    "s": 53.846,
    "l": 48.431
  },
  "oklch": {
    "l": 0.464,
    "c": 0.19576,
    "h": 286.8
  },
  "luminance": 0.08719
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5839BE

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

Preview Lab → · Contrast checker → · Palette generator →

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