#5B2699#5B2699

#5B2699 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.1% C 0.175 H 299.5°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#5B2699
RGBrgb(91, 38, 153)
HSLhsl(268, 60%, 37%)
HSVhsv(268, 75%, 60%)
CMYKcmyk(40.5%, 75.2%, 0%, 40%)
CIE-LABlab(29.18, 47.08, -53.25)
CIE-LCHlch(29.18, 71.08, 311.48°)
OKLaboklab(41.07% 0.0861 -0.1521)
OKLCHoklch(41.07% 0.175 299.5)
XYZxyz(10.7558, 5.9102, 30.7049)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2699 #649926
analogous
#262B99 #5B2699 #942699
triadic
#5B2699 #995B26 #26995B
tetradic
#5B2699 #99262B #649926 #269994
square
#5B2699 #99262B #649926 #269994
split-complementary
#5B2699 #999426 #2B9926
monochromatic
#210E37 #3E1A68 #5B2699 #7832CA #9862D8

Accessibility & contrast

On white

9.62
#5B2699 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5B2699 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2699
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2699#FFFFFF#000000##FFFFFF
##5B26991.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459C
Deuteranopia (green-blind)
#004497
Tritanopia (blue-blind)
#4C435E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5b2699;
/* rgb */ color: rgb(91, 38, 153);
/* oklch */ color: oklch(41.1% 0.175 299.5);
Tailwind
colors: {
  custom: {
    50: '#8f66b8',
    500: '#5b2699',
    950: '#000000',
  },
}
SCSS
$custom: #5b2699;
$custom-light: #8f66b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2699",
  "rgb": {
    "r": 91,
    "g": 38,
    "b": 153
  },
  "hsl": {
    "h": 267.652,
    "s": 60.209,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41066,
    "c": 0.17479,
    "h": 299.5
  },
  "luminance": 0.0591
}

Semantic roles & 50–950 ramp

primary
#5B2699
secondary
#91BD5E
accent
#E3449A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2699

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

Preview Lab → · Contrast checker → · Palette generator →

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