#5B397E#5B397E

#5B397E is a dark, moderate violet. Relative luminance 0.067; OKLCH L 41.8% C 0.115 H 304.7°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#5B397E
RGBrgb(91, 57, 126)
HSLhsl(270, 38%, 36%)
HSVhsv(270, 55%, 49%)
CMYKcmyk(27.8%, 54.8%, 0%, 50.6%)
CIE-LABlab(31.01, 29.75, -33.60)
CIE-LCHlch(31.01, 44.88, 311.52°)
OKLaboklab(41.77% 0.0654 -0.0945)
OKLCHoklch(41.77% 0.115 304.7)
XYZxyz(9.5426, 6.6568, 20.5168)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B397E #5C7E39
analogous
#39397E #5B397E #7D397E
triadic
#5B397E #7E5B39 #397E5B
tetradic
#5B397E #7E3939 #5C7E39 #397E7D
square
#5B397E #7E3939 #5C7E39 #397E7D
split-complementary
#5B397E #7E7D39 #397E39
monochromatic
#1E132A #3D2654 #5B397E #794CA8 #9872BF

Accessibility & contrast

On white

9.01
#5B397E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B397E
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B397E#FFFFFF#000000##FFFFFF
##5B397E1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224880
Deuteranopia (green-blind)
#2D497C
Tritanopia (blue-blind)
#554656
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b397e;
/* rgb */ color: rgb(91, 57, 126);
/* oklch */ color: oklch(41.8% 0.115 304.7);
Tailwind
colors: {
  custom: {
    50: '#8c70a4',
    500: '#5b397e',
    950: '#000000',
  },
}
SCSS
$custom: #5b397e;
$custom-light: #8c70a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b397e",
  "rgb": {
    "r": 91,
    "g": 57,
    "b": 126
  },
  "hsl": {
    "h": 269.565,
    "s": 37.705,
    "l": 35.882
  },
  "oklch": {
    "l": 0.4177,
    "c": 0.11491,
    "h": 304.7
  },
  "luminance": 0.06657
}

Semantic roles & 50–950 ramp

primary
#5B397E
secondary
#8AA86A
accent
#CE5A95
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5B397E

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

Preview Lab → · Contrast checker → · Palette generator →

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