#5B3D7E#5B3D7E

#5B3D7E is a dark, moderate violet. Relative luminance 0.071; OKLCH L 42.5% C 0.108 H 303.4°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#5B3D7E
RGBrgb(91, 61, 126)
HSLhsl(268, 35%, 37%)
HSVhsv(268, 52%, 49%)
CMYKcmyk(27.8%, 51.6%, 0%, 50.6%)
CIE-LABlab(31.96, 27.32, -32.10)
CIE-LCHlch(31.96, 42.15, 310.40°)
OKLaboklab(42.47% 0.0595 -0.0901)
OKLCHoklch(42.47% 0.108 303.4)
XYZxyz(9.7482, 7.0680, 20.5853)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3D7E #607E3D
analogous
#3D407E #5B3D7E #7C3D7E
triadic
#5B3D7E #7E5B3D #3D7E5B
tetradic
#5B3D7E #7E3D40 #607E3D #3D7E7C
square
#5B3D7E #7E3D40 #607E3D #3D7E7C
split-complementary
#5B3D7E #7E7C3D #407E3D
monochromatic
#1F152C #3D2955 #5B3D7E #7951A7 #9878BE

Accessibility & contrast

On white

8.70
#5B3D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5B3D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3D7E
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3D7E#FFFFFF#000000##FFFFFF
##5B3D7E1.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294A80
Deuteranopia (green-blind)
#314B7C
Tritanopia (blue-blind)
#554957
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5b3d7e;
/* rgb */ color: rgb(91, 61, 126);
/* oklch */ color: oklch(42.5% 0.108 303.4);
Tailwind
colors: {
  custom: {
    50: '#8b73a4',
    500: '#5b3d7e',
    950: '#000000',
  },
}
SCSS
$custom: #5b3d7e;
$custom-light: #8b73a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3d7e",
  "rgb": {
    "r": 91,
    "g": 61,
    "b": 126
  },
  "hsl": {
    "h": 267.692,
    "s": 34.759,
    "l": 36.667
  },
  "oklch": {
    "l": 0.42474,
    "c": 0.108,
    "h": 303.4
  },
  "luminance": 0.07068
}

Semantic roles & 50–950 ramp

primary
#5B3D7E
secondary
#8EA86F
accent
#CB5D98
background
#F8F7FA
surface
#F0EDF4
border
#CBC8CE
text
#0C080F
muted
#7D7B7F

Preview Lab

Preview with #5B3D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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