#5B368F#5B368F

#5B368F is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.4% C 0.142 H 299.5°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#5B368F
RGBrgb(91, 54, 143)
HSLhsl(265, 45%, 39%)
HSVhsv(265, 62%, 56%)
CMYKcmyk(36.4%, 62.2%, 0%, 43.9%)
CIE-LABlab(31.45, 36.06, -43.44)
CIE-LCHlch(31.45, 56.46, 309.70°)
OKLaboklab(42.45% 0.0697 -0.1233)
OKLCHoklch(42.45% 0.142 299.5)
XYZxyz(10.5903, 6.8455, 26.7447)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B368F #6A8F36
analogous
#363D8F #5B368F #87368F
triadic
#5B368F #8F5B36 #368F5B
tetradic
#5B368F #8F363D #6A8F36 #368F87
square
#5B368F #8F363D #6A8F36 #368F87
split-complementary
#5B368F #8F8736 #3D8F36
monochromatic
#221436 #3F2563 #5B368F #7848BA #9875CB

Accessibility & contrast

On white

8.86
#5B368F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5B368F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B368F
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B368F#FFFFFF#000000##FFFFFF
##5B368F1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#15498D
Tritanopia (blue-blind)
#50495D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5b368f;
/* rgb */ color: rgb(91, 54, 143);
/* oklch */ color: oklch(42.4% 0.142 299.5);
Tailwind
colors: {
  custom: {
    50: '#8d6fb0',
    500: '#5b368f',
    950: '#000000',
  },
}
SCSS
$custom: #5b368f;
$custom-light: #8d6fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b368f",
  "rgb": {
    "r": 91,
    "g": 54,
    "b": 143
  },
  "hsl": {
    "h": 264.944,
    "s": 45.178,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4245,
    "c": 0.14168,
    "h": 299.5
  },
  "luminance": 0.06846
}

Semantic roles & 50–950 ramp

primary
#5B368F
secondary
#96B36D
accent
#D5539F
background
#F8F6FA
surface
#F0ECF5
border
#CBC7CF
text
#0D0711
muted
#7D7A80

Preview Lab

Preview with #5B368F

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

Preview Lab → · Contrast checker → · Palette generator →

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