#5B309A#5B309A

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

Color values

HEX#5B309A
RGBrgb(91, 48, 154)
HSLhsl(264, 52%, 40%)
HSVhsv(264, 69%, 60%)
CMYKcmyk(40.9%, 68.8%, 0%, 39.6%)
CIE-LABlab(31.05, 42.37, -50.83)
CIE-LCHlch(31.05, 66.17, 309.81°)
OKLaboklab(42.42% 0.0757 -0.1451)
OKLCHoklch(42.42% 0.164 297.6)
XYZxyz(11.2026, 6.6710, 31.2630)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B309A #6F9A30
analogous
#303A9A #5B309A #90309A
triadic
#5B309A #9A5B30 #309A5B
tetradic
#5B309A #9A303A #6F9A30 #309A90
square
#5B309A #9A303A #6F9A30 #309A90
split-complementary
#5B309A #9A9030 #3A9A30
monochromatic
#24133D #3F216B #5B309A #7743C4 #9972D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B309A#FFFFFF#000000##FFFFFF
##5B309A1.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)
#00499D
Deuteranopia (green-blind)
#004898
Tritanopia (blue-blind)
#4B4961
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b309a;
/* rgb */ color: rgb(91, 48, 154);
/* oklch */ color: oklch(42.4% 0.164 297.6);
Tailwind
colors: {
  custom: {
    50: '#8f6bb9',
    500: '#5b309a',
    950: '#000000',
  },
}
SCSS
$custom: #5b309a;
$custom-light: #8f6bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b309a",
  "rgb": {
    "r": 91,
    "g": 48,
    "b": 154
  },
  "hsl": {
    "h": 264.34,
    "s": 52.475,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42415,
    "c": 0.16362,
    "h": 297.6
  },
  "luminance": 0.06671
}

Semantic roles & 50–950 ramp

primary
#5B309A
secondary
#9ABB6B
accent
#DC4CA1
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5B309A

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

Preview Lab → · Contrast checker → · Palette generator →

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