#5B347E#5B347E

#5B347E is a dark, vivid violet. Relative luminance 0.062; OKLCH L 40.9% C 0.123 H 306.0°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#5B347E
RGBrgb(91, 52, 126)
HSLhsl(272, 42%, 35%)
HSVhsv(272, 59%, 49%)
CMYKcmyk(27.8%, 58.7%, 0%, 50.6%)
CIE-LABlab(29.88, 32.71, -35.41)
CIE-LCHlch(29.88, 48.21, 312.73°)
OKLaboklab(40.94% 0.0725 -0.0998)
OKLCHoklch(40.94% 0.123 306)
XYZxyz(9.3075, 6.1866, 20.4384)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B347E #577E34
analogous
#36347E #5B347E #7E347C
triadic
#5B347E #7E5B34 #347E5B
tetradic
#5B347E #7E3634 #577E34 #347C7E
square
#5B347E #7E3634 #577E34 #347C7E
split-complementary
#5B347E #7C7E34 #347E36
monochromatic
#1C1027 #3C2253 #5B347E #7A46A9 #996BC2

Accessibility & contrast

On white

9.39
#5B347E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5B347E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B347E
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B347E#FFFFFF#000000##FFFFFF
##5B347E1.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184580
Deuteranopia (green-blind)
#27477C
Tritanopia (blue-blind)
#554254
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5b347e;
/* rgb */ color: rgb(91, 52, 126);
/* oklch */ color: oklch(40.9% 0.123 306.0);
Tailwind
colors: {
  custom: {
    50: '#8c6da4',
    500: '#5b347e',
    950: '#000000',
  },
}
SCSS
$custom: #5b347e;
$custom-light: #8c6da4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b347e",
  "rgb": {
    "r": 91,
    "g": 52,
    "b": 126
  },
  "hsl": {
    "h": 271.622,
    "s": 41.573,
    "l": 34.902
  },
  "oklch": {
    "l": 0.40935,
    "c": 0.12335,
    "h": 306
  },
  "luminance": 0.06186
}

Semantic roles & 50–950 ramp

primary
#5B347E
secondary
#85AA64
accent
#D15691
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5B347E

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

Preview Lab → · Contrast checker → · Palette generator →

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