#5839B3#5839B3

#5839B3 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.5% C 0.182 H 288.6°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#5839B3
RGBrgb(88, 57, 179)
HSLhsl(255, 52%, 46%)
HSVhsv(255, 68%, 70%)
CMYKcmyk(50.8%, 68.2%, 0%, 29.8%)
CIE-LABlab(34.51, 43.95, -60.23)
CIE-LCHlch(34.51, 74.56, 306.12°)
OKLaboklab(45.45% 0.0583 -0.1728)
OKLCHoklch(45.45% 0.182 288.6)
XYZxyz(13.6219, 8.2550, 43.5147)
Luminance0.0826 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5839B3 #94B339
analogous
#3957B3 #5839B3 #9539B3
triadic
#5839B3 #B35839 #39B358
tetradic
#5839B3 #B33957 #94B339 #39B395
square
#5839B3 #B33957 #94B339 #39B395
split-complementary
#5839B3 #B39539 #57B339
monochromatic
#2A1B56 #412A85 #5839B3 #7A5ECC #A08CDA

Accessibility & contrast

On white

7.92
#5839B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5839B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5839B3
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5839B3#FFFFFF#000000##FFFFFF
##5839B31.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#004EB1
Tritanopia (blue-blind)
#375871
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5839b3;
/* rgb */ color: rgb(88, 57, 179);
/* oklch */ color: oklch(45.5% 0.182 288.6);
Tailwind
colors: {
  custom: {
    50: '#8f72cb',
    500: '#5839b3',
    950: '#000000',
  },
}
SCSS
$custom: #5839b3;
$custom-light: #8f72cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5839b3",
  "rgb": {
    "r": 88,
    "g": 57,
    "b": 179
  },
  "hsl": {
    "h": 255.246,
    "s": 51.695,
    "l": 46.275
  },
  "oklch": {
    "l": 0.4545,
    "c": 0.1824,
    "h": 288.6
  },
  "luminance": 0.08256
}

Semantic roles & 50–950 ramp

primary
#5839B3
secondary
#B4C583
accent
#DB4DB7
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5839B3

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

Preview Lab → · Contrast checker → · Palette generator →

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