#5B347B#5B347B

#5B347B is a dark, moderate violet. Relative luminance 0.061; OKLCH L 40.7% C 0.120 H 307.3°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#5B347B
RGBrgb(91, 52, 123)
HSLhsl(273, 41%, 34%)
HSVhsv(273, 58%, 48%)
CMYKcmyk(26%, 57.7%, 0%, 51.8%)
CIE-LABlab(29.69, 31.94, -33.83)
CIE-LCHlch(29.69, 46.53, 313.35°)
OKLaboklab(40.74% 0.0724 -0.0952)
OKLCHoklch(40.74% 0.12 307.3)
XYZxyz(9.1168, 6.1103, 19.4342)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B347B #547B34
analogous
#38347B #5B347B #7B3478
triadic
#5B347B #7B5B34 #347B5B
tetradic
#5B347B #7B3834 #547B34 #34787B
square
#5B347B #7B3834 #547B34 #34787B
split-complementary
#5B347B #787B34 #347B38
monochromatic
#1B1025 #3B2250 #5B347B #7B46A6 #996AC0

Accessibility & contrast

On white

9.45
#5B347B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5B347B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B347B
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B347B#FFFFFF#000000##FFFFFF
##5B347B1.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C447D
Deuteranopia (green-blind)
#2A4679
Tritanopia (blue-blind)
#564152
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5b347b;
/* rgb */ color: rgb(91, 52, 123);
/* oklch */ color: oklch(40.7% 0.120 307.3);
Tailwind
colors: {
  custom: {
    50: '#8c6da1',
    500: '#5b347b',
    950: '#000000',
  },
}
SCSS
$custom: #5b347b;
$custom-light: #8c6da1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b347b",
  "rgb": {
    "r": 91,
    "g": 52,
    "b": 123
  },
  "hsl": {
    "h": 272.958,
    "s": 40.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.40735,
    "c": 0.11957,
    "h": 307.3
  },
  "luminance": 0.0611
}

Semantic roles & 50–950 ramp

primary
#5B347B
secondary
#82A863
accent
#D0578E
background
#F8F6FA
surface
#F0ECF3
border
#CBC7CD
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5B347B

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

Preview Lab → · Contrast checker → · Palette generator →

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