#5839BC#5839BC

#5839BC is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.2% C 0.193 H 287.1°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#5839BC
RGBrgb(88, 57, 188)
HSLhsl(254, 53%, 48%)
HSVhsv(254, 70%, 74%)
CMYKcmyk(53.2%, 69.7%, 0%, 26.3%)
CIE-LABlab(35.26, 46.58, -64.32)
CIE-LCHlch(35.26, 79.41, 305.91°)
OKLaboklab(46.23% 0.0568 -0.1848)
OKLCHoklch(46.23% 0.193 287.1)
XYZxyz(14.5620, 8.6311, 48.4659)
Luminance0.0863 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5839BC #9DBC39
analogous
#395CBC #5839BC #9939BC
triadic
#5839BC #BC5839 #39BC58
tetradic
#5839BC #BC395C #9DBC39 #39BC99
square
#5839BC #BC395C #9DBC39 #39BC99
split-complementary
#5839BC #BC9939 #5CBC39
monochromatic
#2C1D5E #422B8D #5839BC #7C63D0 #A492DE

Accessibility & contrast

On white

7.70
#5839BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5839BC
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5839BC#FFFFFF#000000##FFFFFF
##5839BC1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C0
Deuteranopia (green-blind)
#004FB9
Tritanopia (blue-blind)
#305B76
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5839bc;
/* rgb */ color: rgb(88, 57, 188);
/* oklch */ color: oklch(46.2% 0.193 287.1);
Tailwind
colors: {
  custom: {
    50: '#9172d1',
    500: '#5839bc',
    950: '#000000',
  },
}
SCSS
$custom: #5839bc;
$custom-light: #9172d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5839bc",
  "rgb": {
    "r": 88,
    "g": 57,
    "b": 188
  },
  "hsl": {
    "h": 254.198,
    "s": 53.469,
    "l": 48.039
  },
  "oklch": {
    "l": 0.46225,
    "c": 0.19335,
    "h": 287.1
  },
  "luminance": 0.08632
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5839BC

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

Preview Lab → · Contrast checker → · Palette generator →

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