#5B368D#5B368D

#5B368D is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.3% C 0.139 H 300.1°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#5B368D
RGBrgb(91, 54, 141)
HSLhsl(266, 45%, 38%)
HSVhsv(266, 62%, 55%)
CMYKcmyk(35.5%, 61.7%, 0%, 44.7%)
CIE-LABlab(31.31, 35.52, -42.43)
CIE-LCHlch(31.31, 55.33, 309.93°)
OKLaboklab(42.31% 0.0698 -0.1204)
OKLCHoklch(42.31% 0.139 300.1)
XYZxyz(10.4401, 6.7855, 25.9538)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B368D #688D36
analogous
#363D8D #5B368D #86368D
triadic
#5B368D #8D5B36 #368D5B
tetradic
#5B368D #8D363D #688D36 #368D86
square
#5B368D #8D363D #688D36 #368D86
split-complementary
#5B368D #8D8636 #3D8D36
monochromatic
#221434 #3E2561 #5B368D #7847B9 #9874CA

Accessibility & contrast

On white

8.91
#5B368D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5B368D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B368D
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B368D#FFFFFF#000000##FFFFFF
##5B368D1.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014990
Deuteranopia (green-blind)
#19498B
Tritanopia (blue-blind)
#50485C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5b368d;
/* rgb */ color: rgb(91, 54, 141);
/* oklch */ color: oklch(42.3% 0.139 300.1);
Tailwind
colors: {
  custom: {
    50: '#8d6faf',
    500: '#5b368d',
    950: '#000000',
  },
}
SCSS
$custom: #5b368d;
$custom-light: #8d6faf;
$custom-dark: #000000;
JSON
{
  "hex": "#5b368d",
  "rgb": {
    "r": 91,
    "g": 54,
    "b": 141
  },
  "hsl": {
    "h": 265.517,
    "s": 44.615,
    "l": 38.235
  },
  "oklch": {
    "l": 0.42305,
    "c": 0.13915,
    "h": 300.1
  },
  "luminance": 0.06786
}

Semantic roles & 50–950 ramp

primary
#5B368D
secondary
#95B26D
accent
#D4539E
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #5B368D

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

Preview Lab → · Contrast checker → · Palette generator →

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