#5B348C#5B348C

#5B348C is a dark, vivid violet. Relative luminance 0.066; OKLCH L 41.9% C 0.141 H 300.9°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#5B348C
RGBrgb(91, 52, 140)
HSLhsl(267, 46%, 38%)
HSVhsv(267, 63%, 55%)
CMYKcmyk(35%, 62.9%, 0%, 45.1%)
CIE-LABlab(30.82, 36.39, -42.62)
CIE-LCHlch(30.82, 56.04, 310.50°)
OKLaboklab(41.92% 0.0724 -0.1209)
OKLCHoklch(41.92% 0.141 300.9)
XYZxyz(10.2749, 6.5735, 25.5334)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B348C #658C34
analogous
#34398C #5B348C #87348C
triadic
#5B348C #8C5B34 #348C5B
tetradic
#5B348C #8C3439 #658C34 #348C87
square
#5B348C #8C3439 #658C34 #348C87
split-complementary
#5B348C #8C8734 #398C34
monochromatic
#211333 #3E235F #5B348C #7845B9 #9870CA

Accessibility & contrast

On white

9.07
#5B348C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5B348C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B348C
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B348C#FFFFFF#000000##FFFFFF
##5B348C1.009.072.319.07
#FFFFFF9.071.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488F
Deuteranopia (green-blind)
#16488A
Tritanopia (blue-blind)
#51475B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b348c;
/* rgb */ color: rgb(91, 52, 140);
/* oklch */ color: oklch(41.9% 0.141 300.9);
Tailwind
colors: {
  custom: {
    50: '#8d6dae',
    500: '#5b348c',
    950: '#000000',
  },
}
SCSS
$custom: #5b348c;
$custom-light: #8d6dae;
$custom-dark: #000000;
JSON
{
  "hex": "#5b348c",
  "rgb": {
    "r": 91,
    "g": 52,
    "b": 140
  },
  "hsl": {
    "h": 266.591,
    "s": 45.833,
    "l": 37.647
  },
  "oklch": {
    "l": 0.4192,
    "c": 0.14093,
    "h": 300.9
  },
  "luminance": 0.06574
}

Semantic roles & 50–950 ramp

primary
#5B348C
secondary
#92B26A
accent
#D5529B
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #5B348C

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

Preview Lab → · Contrast checker → · Palette generator →

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