#5B348F#5B348F

#5B348F is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.1% C 0.145 H 299.9°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#5B348F
RGBrgb(91, 52, 143)
HSLhsl(266, 47%, 38%)
HSVhsv(266, 64%, 56%)
CMYKcmyk(36.4%, 63.6%, 0%, 43.9%)
CIE-LABlab(31.03, 37.20, -44.12)
CIE-LCHlch(31.03, 57.71, 310.13°)
OKLaboklab(42.14% 0.0722 -0.1254)
OKLCHoklch(42.14% 0.145 299.9)
XYZxyz(10.4991, 6.6632, 26.7143)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B348F #688F34
analogous
#343A8F #5B348F #88348F
triadic
#5B348F #8F5B34 #348F5B
tetradic
#5B348F #8F343A #688F34 #348F88
square
#5B348F #8F343A #688F34 #348F88
split-complementary
#5B348F #8F8834 #3A8F34
monochromatic
#221335 #3E2462 #5B348F #7845BB #9872CC

Accessibility & contrast

On white

9.00
#5B348F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5B348F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B348F
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B348F#FFFFFF#000000##FFFFFF
##5B348F1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004992
Deuteranopia (green-blind)
#10488D
Tritanopia (blue-blind)
#50485C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b348f;
/* rgb */ color: rgb(91, 52, 143);
/* oklch */ color: oklch(42.1% 0.145 299.9);
Tailwind
colors: {
  custom: {
    50: '#8d6eb0',
    500: '#5b348f',
    950: '#000000',
  },
}
SCSS
$custom: #5b348f;
$custom-light: #8d6eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b348f",
  "rgb": {
    "r": 91,
    "g": 52,
    "b": 143
  },
  "hsl": {
    "h": 265.714,
    "s": 46.667,
    "l": 38.235
  },
  "oklch": {
    "l": 0.42141,
    "c": 0.14467,
    "h": 299.9
  },
  "luminance": 0.06663
}

Semantic roles & 50–950 ramp

primary
#5B348F
secondary
#95B46B
accent
#D6519D
background
#F8F6FA
surface
#F0ECF5
border
#CBC7CF
text
#0D0711
muted
#7D7A80

Preview Lab

Preview with #5B348F

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

Preview Lab → · Contrast checker → · Palette generator →

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