#5B3299#5B3299

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

Color values

HEX#5B3299
RGBrgb(91, 50, 153)
HSLhsl(264, 51%, 40%)
HSVhsv(264, 67%, 60%)
CMYKcmyk(40.5%, 67.3%, 0%, 40%)
CIE-LABlab(31.36, 41.02, -49.71)
CIE-LCHlch(31.36, 64.45, 309.53°)
OKLaboklab(42.61% 0.0736 -0.1418)
OKLCHoklch(42.61% 0.16 297.4)
XYZxyz(11.2033, 6.8051, 30.8541)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3299 #709932
analogous
#323D99 #5B3299 #8E3299
triadic
#5B3299 #995B32 #32995B
tetradic
#5B3299 #99323D #709932 #32998E
square
#5B3299 #99323D #709932 #32998E
split-complementary
#5B3299 #998E32 #3D9932
monochromatic
#24143D #40236B #5B3299 #7746C2 #9974D2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B3299#FFFFFF#000000##FFFFFF
##5B32991.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)
#004A9C
Deuteranopia (green-blind)
#004997
Tritanopia (blue-blind)
#4C4A61
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5b3299;
/* rgb */ color: rgb(91, 50, 153);
/* oklch */ color: oklch(42.6% 0.160 297.4);
Tailwind
colors: {
  custom: {
    50: '#8e6db8',
    500: '#5b3299',
    950: '#000000',
  },
}
SCSS
$custom: #5b3299;
$custom-light: #8e6db8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3299",
  "rgb": {
    "r": 91,
    "g": 50,
    "b": 153
  },
  "hsl": {
    "h": 263.883,
    "s": 50.739,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42615,
    "c": 0.15975,
    "h": 297.4
  },
  "luminance": 0.06805
}

Semantic roles & 50–950 ramp

primary
#5B3299
secondary
#9BBA6D
accent
#DA4EA2
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5B3299

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

Preview Lab → · Contrast checker → · Palette generator →

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