#5B397D#5B397D

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

Color values

HEX#5B397D
RGBrgb(91, 57, 125)
HSLhsl(270, 37%, 36%)
HSVhsv(270, 54%, 49%)
CMYKcmyk(27.2%, 54.4%, 0%, 51%)
CIE-LABlab(30.95, 29.49, -33.08)
CIE-LCHlch(30.95, 44.31, 311.72°)
OKLaboklab(41.71% 0.0653 -0.093)
OKLCHoklch(41.71% 0.114 305.1)
XYZxyz(9.4784, 6.6311, 20.1787)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B397D #5B7D39
analogous
#39397D #5B397D #7D397D
triadic
#5B397D #7D5B39 #397D5B
tetradic
#5B397D #7D3939 #5B7D39 #397D7D
square
#5B397D #7D3939 #5B7D39 #397D7D
split-complementary
#5B397D #7D7D39 #397D39
monochromatic
#1E1329 #3C2653 #5B397D #7A4CA7 #9872BF

Accessibility & contrast

On white

9.03
#5B397D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5B397D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B397D
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B397D#FFFFFF#000000##FFFFFF
##5B397D1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23487F
Deuteranopia (green-blind)
#2E497B
Tritanopia (blue-blind)
#554555
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b397d;
/* rgb */ color: rgb(91, 57, 125);
/* oklch */ color: oklch(41.7% 0.114 305.1);
Tailwind
colors: {
  custom: {
    50: '#8b70a3',
    500: '#5b397d',
    950: '#000000',
  },
}
SCSS
$custom: #5b397d;
$custom-light: #8b70a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b397d",
  "rgb": {
    "r": 91,
    "g": 57,
    "b": 125
  },
  "hsl": {
    "h": 270,
    "s": 37.363,
    "l": 35.686
  },
  "oklch": {
    "l": 0.41706,
    "c": 0.11361,
    "h": 305.1
  },
  "luminance": 0.06631
}

Semantic roles & 50–950 ramp

primary
#5B397D
secondary
#89A86A
accent
#CD5A94
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5B397D

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

Preview Lab → · Contrast checker → · Palette generator →

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