#5B3F84#5B3F84

#5B3F84 is a dark, moderate violet. Relative luminance 0.074; OKLCH L 43.2% C 0.113 H 300.5°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#5B3F84
RGBrgb(91, 63, 132)
HSLhsl(264, 35%, 38%)
HSVhsv(264, 52%, 52%)
CMYKcmyk(31.1%, 52.3%, 0%, 48.2%)
CIE-LABlab(32.80, 27.70, -34.49)
CIE-LCHlch(32.80, 44.24, 308.76°)
OKLaboklab(43.21% 0.0572 -0.0971)
OKLCHoklch(43.21% 0.113 300.5)
XYZxyz(10.2558, 7.4451, 22.7220)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3F84 #68843F
analogous
#3F4584 #5B3F84 #7D3F84
triadic
#5B3F84 #845B3F #3F845B
tetradic
#5B3F84 #843F45 #68843F #3F847D
square
#5B3F84 #843F45 #68843F #3F847D
split-complementary
#5B3F84 #847D3F #45843F
monochromatic
#221731 #3E2B5B #5B3F84 #7853AD #987DC1

Accessibility & contrast

On white

8.44
#5B3F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#5B3F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3F84
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3F84#FFFFFF#000000##FFFFFF
##5B3F841.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284D86
Deuteranopia (green-blind)
#2F4D82
Tritanopia (blue-blind)
#534C5B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5b3f84;
/* rgb */ color: rgb(91, 63, 132);
/* oklch */ color: oklch(43.2% 0.113 300.5);
Tailwind
colors: {
  custom: {
    50: '#8c75a8',
    500: '#5b3f84',
    950: '#000000',
  },
}
SCSS
$custom: #5b3f84;
$custom-light: #8c75a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3f84",
  "rgb": {
    "r": 91,
    "g": 63,
    "b": 132
  },
  "hsl": {
    "h": 264.348,
    "s": 35.385,
    "l": 38.235
  },
  "oklch": {
    "l": 0.43213,
    "c": 0.11271,
    "h": 300.5
  },
  "luminance": 0.07445
}

Semantic roles & 50–950 ramp

primary
#5B3F84
secondary
#95AB74
accent
#CB5C9E
background
#F8F7FA
surface
#F0EDF4
border
#CBC8CE
text
#0C080F
muted
#7D7B7F

Preview Lab

Preview with #5B3F84

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

Preview Lab → · Contrast checker → · Palette generator →

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