#5B3293#5B3293

#5B3293 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.1% C 0.152 H 299.2°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#5B3293
RGBrgb(91, 50, 147)
HSLhsl(265, 49%, 39%)
HSVhsv(265, 66%, 58%)
CMYKcmyk(38.1%, 66%, 0%, 42.4%)
CIE-LABlab(30.91, 39.40, -46.78)
CIE-LCHlch(30.91, 61.16, 310.10°)
OKLaboklab(42.15% 0.0743 -0.1331)
OKLCHoklch(42.15% 0.152 299.2)
XYZxyz(10.7201, 6.6118, 28.3095)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3293 #6A9332
analogous
#323993 #5B3293 #8B3293
triadic
#5B3293 #935B32 #32935B
tetradic
#5B3293 #933239 #6A9332 #32938B
square
#5B3293 #933239 #6A9332 #32938B
split-complementary
#5B3293 #938B32 #399332
monochromatic
#221338 #3F2265 #5B3293 #7843BF #9871CF

Accessibility & contrast

On white

9.04
#5B3293 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5B3293 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3293
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3293#FFFFFF#000000##FFFFFF
##5B32931.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004996
Deuteranopia (green-blind)
#004891
Tritanopia (blue-blind)
#4E485E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b3293;
/* rgb */ color: rgb(91, 50, 147);
/* oklch */ color: oklch(42.1% 0.152 299.2);
Tailwind
colors: {
  custom: {
    50: '#8e6cb3',
    500: '#5b3293',
    950: '#000000',
  },
}
SCSS
$custom: #5b3293;
$custom-light: #8e6cb3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3293",
  "rgb": {
    "r": 91,
    "g": 50,
    "b": 147
  },
  "hsl": {
    "h": 265.361,
    "s": 49.239,
    "l": 38.627
  },
  "oklch": {
    "l": 0.42146,
    "c": 0.15247,
    "h": 299.2
  },
  "luminance": 0.06612
}

Semantic roles & 50–950 ramp

primary
#5B3293
secondary
#96B76A
accent
#D94F9F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5B3293

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

Preview Lab → · Contrast checker → · Palette generator →

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