#5B387D#5B387D

#5B387D is a dark, moderate violet. Relative luminance 0.065; OKLCH L 41.5% C 0.115 H 305.4°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#5B387D
RGBrgb(91, 56, 125)
HSLhsl(270, 38%, 35%)
HSVhsv(270, 55%, 49%)
CMYKcmyk(27.2%, 55.2%, 0%, 51%)
CIE-LABlab(30.72, 30.09, -33.44)
CIE-LCHlch(30.72, 44.99, 311.97°)
OKLaboklab(41.53% 0.0668 -0.094)
OKLCHoklch(41.53% 0.115 305.4)
XYZxyz(9.4294, 6.5332, 20.1623)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B387D #5A7D38
analogous
#38387D #5B387D #7D387C
triadic
#5B387D #7D5B38 #387D5B
tetradic
#5B387D #7D3838 #5A7D38 #387C7D
square
#5B387D #7D3838 #5A7D38 #387C7D
split-complementary
#5B387D #7C7D38 #387D38
monochromatic
#1D1228 #3C2553 #5B387D #7A4BA7 #9870BF

Accessibility & contrast

On white

9.10
#5B387D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5B387D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B387D
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B387D#FFFFFF#000000##FFFFFF
##5B387D1.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21477F
Deuteranopia (green-blind)
#2D487B
Tritanopia (blue-blind)
#554555
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5b387d;
/* rgb */ color: rgb(91, 56, 125);
/* oklch */ color: oklch(41.5% 0.115 305.4);
Tailwind
colors: {
  custom: {
    50: '#8c70a3',
    500: '#5b387d',
    950: '#000000',
  },
}
SCSS
$custom: #5b387d;
$custom-light: #8c70a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b387d",
  "rgb": {
    "r": 91,
    "g": 56,
    "b": 125
  },
  "hsl": {
    "h": 270.435,
    "s": 38.122,
    "l": 35.49
  },
  "oklch": {
    "l": 0.41534,
    "c": 0.11532,
    "h": 305.4
  },
  "luminance": 0.06533
}

Semantic roles & 50–950 ramp

primary
#5B387D
secondary
#88A869
accent
#CE5A93
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5B387D

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

Preview Lab → · Contrast checker → · Palette generator →

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