#5836AB#5836AB

#5836AB is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.3% C 0.176 H 290.8°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#5836AB
RGBrgb(88, 54, 171)
HSLhsl(257, 52%, 44%)
HSVhsv(257, 68%, 67%)
CMYKcmyk(48.5%, 68.4%, 0%, 32.9%)
CIE-LABlab(33.25, 43.29, -57.52)
CIE-LCHlch(33.25, 71.99, 306.96°)
OKLaboklab(44.34% 0.0625 -0.1649)
OKLCHoklch(44.34% 0.176 290.8)
XYZxyz(12.6923, 7.6528, 39.3286)
Luminance0.0765 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5836AB #89AB36
analogous
#364FAB #5836AB #9336AB
triadic
#5836AB #AB5836 #36AB58
tetradic
#5836AB #AB364F #89AB36 #36AB93
square
#5836AB #AB364F #89AB36 #36AB93
split-complementary
#5836AB #AB9336 #4FAB36
monochromatic
#28194E #40277C #5836AB #7755C9 #9C83D8

Accessibility & contrast

On white

8.30
#5836AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#5836AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5836AB
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5836AB#FFFFFF#000000##FFFFFF
##5836AB1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#004CA9
Tritanopia (blue-blind)
#3D536C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5836ab;
/* rgb */ color: rgb(88, 54, 171);
/* oklch */ color: oklch(44.3% 0.176 290.8);
Tailwind
colors: {
  custom: {
    50: '#8f6fc5',
    500: '#5836ab',
    950: '#000000',
  },
}
SCSS
$custom: #5836ab;
$custom-light: #8f6fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5836ab",
  "rgb": {
    "r": 88,
    "g": 54,
    "b": 171
  },
  "hsl": {
    "h": 257.436,
    "s": 52,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44342,
    "c": 0.1763,
    "h": 290.8
  },
  "luminance": 0.07653
}

Semantic roles & 50–950 ramp

primary
#5836AB
secondary
#ADC27B
accent
#DB4CB2
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5836AB

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

Preview Lab → · Contrast checker → · Palette generator →

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