#5836B5#5836B5

#5836B5 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.2% C 0.188 H 288.8°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#5836B5
RGBrgb(88, 54, 181)
HSLhsl(256, 54%, 46%)
HSVhsv(256, 70%, 71%)
CMYKcmyk(51.4%, 70.2%, 0%, 29%)
CIE-LABlab(34.08, 46.16, -62.11)
CIE-LCHlch(34.08, 77.39, 306.62°)
OKLaboklab(45.2% 0.0608 -0.1783)
OKLCHoklch(45.2% 0.188 288.8)
XYZxyz(13.6817, 8.0486, 44.5397)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5836B5 #93B536
analogous
#3653B5 #5836B5 #9736B5
triadic
#5836B5 #B55836 #36B558
tetradic
#5836B5 #B53653 #93B536 #36B597
square
#5836B5 #B53653 #93B536 #36B597
split-complementary
#5836B5 #B59736 #53B536
monochromatic
#2A1A57 #412886 #5836B5 #795ACE #A089DC

Accessibility & contrast

On white

8.05
#5836B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5836B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5836B5
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5836B5#FFFFFF#000000##FFFFFF
##5836B51.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B9
Deuteranopia (green-blind)
#004DB3
Tritanopia (blue-blind)
#365771
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5836b5;
/* rgb */ color: rgb(88, 54, 181);
/* oklch */ color: oklch(45.2% 0.188 288.8);
Tailwind
colors: {
  custom: {
    50: '#9070cc',
    500: '#5836b5',
    950: '#000000',
  },
}
SCSS
$custom: #5836b5;
$custom-light: #9070cc;
$custom-dark: #000000;
JSON
{
  "hex": "#5836b5",
  "rgb": {
    "r": 88,
    "g": 54,
    "b": 181
  },
  "hsl": {
    "h": 256.063,
    "s": 54.043,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45198,
    "c": 0.18841,
    "h": 288.8
  },
  "luminance": 0.08049
}

Semantic roles & 50–950 ramp

primary
#5836B5
secondary
#B3C681
accent
#DD4AB6
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5836B5

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

Preview Lab → · Contrast checker → · Palette generator →

#5836B5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva