#5B368C#5B368C

#5B368C is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.2% C 0.138 H 300.4°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#5B368C
RGBrgb(91, 54, 140)
HSLhsl(266, 44%, 38%)
HSVhsv(266, 61%, 55%)
CMYKcmyk(35%, 61.4%, 0%, 45.1%)
CIE-LABlab(31.24, 35.25, -41.93)
CIE-LCHlch(31.24, 54.77, 310.05°)
OKLaboklab(42.23% 0.0698 -0.1189)
OKLCHoklch(42.23% 0.138 300.4)
XYZxyz(10.3660, 6.7559, 25.5637)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B368C #678C36
analogous
#363C8C #5B368C #86368C
triadic
#5B368C #8C5B36 #368C5B
tetradic
#5B368C #8C363C #678C36 #368C86
square
#5B368C #8C363C #678C36 #368C86
split-complementary
#5B368C #8C8636 #3C8C36
monochromatic
#221434 #3E2560 #5B368C #7847B8 #9873C9

Accessibility & contrast

On white

8.93
#5B368C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5B368C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B368C
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B368C#FFFFFF#000000##FFFFFF
##5B368C1.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03498F
Deuteranopia (green-blind)
#1A498A
Tritanopia (blue-blind)
#51485B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5b368c;
/* rgb */ color: rgb(91, 54, 140);
/* oklch */ color: oklch(42.2% 0.138 300.4);
Tailwind
colors: {
  custom: {
    50: '#8d6fae',
    500: '#5b368c',
    950: '#000000',
  },
}
SCSS
$custom: #5b368c;
$custom-light: #8d6fae;
$custom-dark: #000000;
JSON
{
  "hex": "#5b368c",
  "rgb": {
    "r": 91,
    "g": 54,
    "b": 140
  },
  "hsl": {
    "h": 265.814,
    "s": 44.33,
    "l": 38.039
  },
  "oklch": {
    "l": 0.42232,
    "c": 0.13787,
    "h": 300.4
  },
  "luminance": 0.06756
}

Semantic roles & 50–950 ramp

primary
#5B368C
secondary
#94B26C
accent
#D4549D
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #5B368C

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

Preview Lab → · Contrast checker → · Palette generator →

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