#5B309E#5B309E

#5B309E is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.7% C 0.168 H 296.5°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#5B309E
RGBrgb(91, 48, 158)
HSLhsl(263, 53%, 40%)
HSVhsv(263, 70%, 62%)
CMYKcmyk(42.4%, 69.6%, 0%, 38%)
CIE-LABlab(31.36, 43.45, -52.75)
CIE-LCHlch(31.36, 68.34, 309.48°)
OKLaboklab(42.74% 0.0751 -0.1507)
OKLCHoklch(42.74% 0.168 296.5)
XYZxyz(11.5413, 6.8064, 33.0468)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B309E #739E30
analogous
#303C9E #5B309E #92309E
triadic
#5B309E #9E5B30 #309E5B
tetradic
#5B309E #9E303C #739E30 #309E92
square
#5B309E #9E303C #739E30 #309E92
split-complementary
#5B309E #9E9230 #3C9E30
monochromatic
#251340 #40226F #5B309E #7745C6 #9A74D5

Accessibility & contrast

On white

8.89
#5B309E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5B309E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B309E
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B309E#FFFFFF#000000##FFFFFF
##5B309E1.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA1
Deuteranopia (green-blind)
#00489C
Tritanopia (blue-blind)
#4A4B63
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5b309e;
/* rgb */ color: rgb(91, 48, 158);
/* oklch */ color: oklch(42.7% 0.168 296.5);
Tailwind
colors: {
  custom: {
    50: '#8f6cbb',
    500: '#5b309e',
    950: '#000000',
  },
}
SCSS
$custom: #5b309e;
$custom-light: #8f6cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b309e",
  "rgb": {
    "r": 91,
    "g": 48,
    "b": 158
  },
  "hsl": {
    "h": 263.455,
    "s": 53.398,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4274,
    "c": 0.16836,
    "h": 296.5
  },
  "luminance": 0.06807
}

Semantic roles & 50–950 ramp

primary
#5B309E
secondary
#9EBD6D
accent
#DD4BA4
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B309E

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

Preview Lab → · Contrast checker → · Palette generator →

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