#5B387F#5B387F

#5B387F is a dark, moderate violet. Relative luminance 0.066; OKLCH L 41.7% C 0.118 H 304.5°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#5B387F
RGBrgb(91, 56, 127)
HSLhsl(270, 39%, 36%)
HSVhsv(270, 56%, 50%)
CMYKcmyk(28.3%, 55.9%, 0%, 50.2%)
CIE-LABlab(30.84, 30.61, -34.50)
CIE-LCHlch(30.84, 46.12, 311.58°)
OKLaboklab(41.66% 0.0669 -0.0971)
OKLCHoklch(41.66% 0.118 304.5)
XYZxyz(9.5585, 6.5848, 20.8420)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B387F #5C7F38
analogous
#38387F #5B387F #7E387F
triadic
#5B387F #7F5B38 #387F5B
tetradic
#5B387F #7F3838 #5C7F38 #387F7E
square
#5B387F #7F3838 #5C7F38 #387F7E
split-complementary
#5B387F #7F7E38 #387F38
monochromatic
#1E132A #3D2555 #5B387F #794BA9 #9871C0

Accessibility & contrast

On white

9.06
#5B387F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5B387F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B387F
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B387F#FFFFFF#000000##FFFFFF
##5B387F1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204881
Deuteranopia (green-blind)
#2B497D
Tritanopia (blue-blind)
#554556
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b387f;
/* rgb */ color: rgb(91, 56, 127);
/* oklch */ color: oklch(41.7% 0.118 304.5);
Tailwind
colors: {
  custom: {
    50: '#8c70a4',
    500: '#5b387f',
    950: '#000000',
  },
}
SCSS
$custom: #5b387f;
$custom-light: #8c70a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b387f",
  "rgb": {
    "r": 91,
    "g": 56,
    "b": 127
  },
  "hsl": {
    "h": 269.577,
    "s": 38.798,
    "l": 35.882
  },
  "oklch": {
    "l": 0.41664,
    "c": 0.11793,
    "h": 304.5
  },
  "luminance": 0.06585
}

Semantic roles & 50–950 ramp

primary
#5B387F
secondary
#8AA969
accent
#CF5995
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5B387F

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

Preview Lab → · Contrast checker → · Palette generator →

#5B387F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva