#5B397C#5B397C

#5B397C is a dark, moderate violet. Relative luminance 0.066; OKLCH L 41.6% C 0.112 H 305.5°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#5B397C
RGBrgb(91, 57, 124)
HSLhsl(270, 37%, 35%)
HSVhsv(270, 54%, 49%)
CMYKcmyk(26.6%, 54%, 0%, 51.4%)
CIE-LABlab(30.89, 29.23, -32.54)
CIE-LCHlch(30.89, 43.74, 311.92°)
OKLaboklab(41.64% 0.0652 -0.0914)
OKLCHoklch(41.64% 0.112 305.5)
XYZxyz(9.4148, 6.6057, 19.8439)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B397C #5A7C39
analogous
#39397C #5B397C #7C397B
triadic
#5B397C #7C5B39 #397C5B
tetradic
#5B397C #7C3939 #5A7C39 #397B7C
square
#5B397C #7C3939 #5A7C39 #397B7C
split-complementary
#5B397C #7B7C39 #397C39
monochromatic
#1D1228 #3C2652 #5B397C #7A4CA6 #9871BE

Accessibility & contrast

On white

9.05
#5B397C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B397C
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B397C#FFFFFF#000000##FFFFFF
##5B397C1.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24487E
Deuteranopia (green-blind)
#2E497A
Tritanopia (blue-blind)
#564555
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b397c;
/* rgb */ color: rgb(91, 57, 124);
/* oklch */ color: oklch(41.6% 0.112 305.5);
Tailwind
colors: {
  custom: {
    50: '#8b70a2',
    500: '#5b397c',
    950: '#000000',
  },
}
SCSS
$custom: #5b397c;
$custom-light: #8b70a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b397c",
  "rgb": {
    "r": 91,
    "g": 57,
    "b": 124
  },
  "hsl": {
    "h": 270.448,
    "s": 37.017,
    "l": 35.49
  },
  "oklch": {
    "l": 0.41642,
    "c": 0.11229,
    "h": 305.5
  },
  "luminance": 0.06606
}

Semantic roles & 50–950 ramp

primary
#5B397C
secondary
#88A76A
accent
#CD5B93
background
#F8F6FA
surface
#F0ECF3
border
#CBC7CD
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5B397C

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

Preview Lab → · Contrast checker → · Palette generator →

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