#5B367F#5B367F

#5B367F is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.3% C 0.121 H 305.1°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#5B367F
RGBrgb(91, 54, 127)
HSLhsl(270, 40%, 35%)
HSVhsv(270, 57%, 50%)
CMYKcmyk(28.3%, 57.5%, 0%, 50.2%)
CIE-LABlab(30.39, 31.80, -35.23)
CIE-LCHlch(30.39, 47.46, 312.07°)
OKLaboklab(41.33% 0.0697 -0.0992)
OKLCHoklch(41.33% 0.121 305.1)
XYZxyz(9.4635, 6.3948, 20.8103)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B367F #5A7F36
analogous
#37367F #5B367F #7F367E
triadic
#5B367F #7F5B36 #367F5B
tetradic
#5B367F #7F3736 #5A7F36 #367E7F
square
#5B367F #7F3736 #5A7F36 #367E7F
split-complementary
#5B367F #7E7F36 #367F37
monochromatic
#1D1129 #3C2454 #5B367F #7A48AA #986EC1

Accessibility & contrast

On white

9.21
#5B367F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5B367F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B367F
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B367F#FFFFFF#000000##FFFFFF
##5B367F1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4681
Deuteranopia (green-blind)
#29487D
Tritanopia (blue-blind)
#554455
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5b367f;
/* rgb */ color: rgb(91, 54, 127);
/* oklch */ color: oklch(41.3% 0.121 305.1);
Tailwind
colors: {
  custom: {
    50: '#8c6ea4',
    500: '#5b367f',
    950: '#000000',
  },
}
SCSS
$custom: #5b367f;
$custom-light: #8c6ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b367f",
  "rgb": {
    "r": 91,
    "g": 54,
    "b": 127
  },
  "hsl": {
    "h": 270.411,
    "s": 40.331,
    "l": 35.49
  },
  "oklch": {
    "l": 0.41329,
    "c": 0.1213,
    "h": 305.1
  },
  "luminance": 0.06395
}

Semantic roles & 50–950 ramp

primary
#5B367F
secondary
#88AA67
accent
#D05893
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5B367F

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

Preview Lab → · Contrast checker → · Palette generator →

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