#5B2994#5B2994

#5B2994 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.0% C 0.166 H 300.5°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#5B2994
RGBrgb(91, 41, 148)
HSLhsl(268, 57%, 37%)
HSVhsv(268, 72%, 58%)
CMYKcmyk(38.5%, 72.3%, 0%, 42%)
CIE-LABlab(29.28, 44.36, -50.03)
CIE-LCHlch(29.28, 66.86, 311.57°)
OKLaboklab(41.01% 0.0842 -0.1427)
OKLCHoklch(41.01% 0.166 300.5)
XYZxyz(10.4513, 5.9481, 28.6087)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2994 #629429
analogous
#292D94 #5B2994 #912994
triadic
#5B2994 #945B29 #29945B
tetradic
#5B2994 #94292D #629429 #299491
square
#5B2994 #94292D #629429 #299491
split-complementary
#5B2994 #949129 #2D9429
monochromatic
#200E34 #3E1C64 #5B2994 #7836C4 #9863D4

Accessibility & contrast

On white

9.59
#5B2994 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5B2994 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2994
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2994#FFFFFF#000000##FFFFFF
##5B29941.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004597
Deuteranopia (green-blind)
#004492
Tritanopia (blue-blind)
#4E435C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5b2994;
/* rgb */ color: rgb(91, 41, 148);
/* oklch */ color: oklch(41.0% 0.166 300.5);
Tailwind
colors: {
  custom: {
    50: '#8f67b4',
    500: '#5b2994',
    950: '#000000',
  },
}
SCSS
$custom: #5b2994;
$custom-light: #8f67b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2994",
  "rgb": {
    "r": 91,
    "g": 41,
    "b": 148
  },
  "hsl": {
    "h": 268.037,
    "s": 56.614,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41006,
    "c": 0.16564,
    "h": 300.5
  },
  "luminance": 0.05948
}

Semantic roles & 50–950 ramp

primary
#5B2994
secondary
#8FBA5F
accent
#E04899
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2994

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

Preview Lab → · Contrast checker → · Palette generator →

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