#5B308A#5B308A

#5B308A is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.2% C 0.144 H 302.4°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#5B308A
RGBrgb(91, 48, 138)
HSLhsl(269, 48%, 36%)
HSVhsv(269, 65%, 54%)
CMYKcmyk(34.1%, 65.2%, 0%, 45.9%)
CIE-LABlab(29.84, 38.10, -42.94)
CIE-LCHlch(29.84, 57.41, 311.58°)
OKLaboklab(41.17% 0.0775 -0.1219)
OKLCHoklch(41.17% 0.144 302.4)
XYZxyz(9.9577, 6.1730, 24.7067)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B308A #5F8A30
analogous
#30328A #5B308A #88308A
triadic
#5B308A #8A5B30 #308A5B
tetradic
#5B308A #8A3032 #5F8A30 #308A88
square
#5B308A #8A3032 #5F8A30 #308A88
split-complementary
#5B308A #8A8830 #328A30
monochromatic
#1F102F #3D205D #5B308A #7940B7 #9869CB

Accessibility & contrast

On white

9.40
#5B308A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5B308A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B308A
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B308A#FFFFFF#000000##FFFFFF
##5B308A1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468D
Deuteranopia (green-blind)
#124688
Tritanopia (blue-blind)
#524358
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5b308a;
/* rgb */ color: rgb(91, 48, 138);
/* oklch */ color: oklch(41.2% 0.144 302.4);
Tailwind
colors: {
  custom: {
    50: '#8d6bad',
    500: '#5b308a',
    950: '#000000',
  },
}
SCSS
$custom: #5b308a;
$custom-light: #8d6bad;
$custom-dark: #000000;
JSON
{
  "hex": "#5b308a",
  "rgb": {
    "r": 91,
    "g": 48,
    "b": 138
  },
  "hsl": {
    "h": 268.667,
    "s": 48.387,
    "l": 36.471
  },
  "oklch": {
    "l": 0.41171,
    "c": 0.14443,
    "h": 302.4
  },
  "luminance": 0.06173
}

Semantic roles & 50–950 ramp

primary
#5B308A
secondary
#8DB264
accent
#D85097
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D0710
muted
#7D7A7F

Preview Lab

Preview with #5B308A

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

Preview Lab → · Contrast checker → · Palette generator →

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