#5B299B#5B299B

#5B299B is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.174 H 298.5°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#5B299B
RGBrgb(91, 41, 155)
HSLhsl(266, 58%, 38%)
HSVhsv(266, 74%, 61%)
CMYKcmyk(41.3%, 73.5%, 0%, 39.2%)
CIE-LABlab(29.85, 46.18, -53.38)
CIE-LCHlch(29.85, 70.59, 310.87°)
OKLaboklab(41.59% 0.0828 -0.1525)
OKLCHoklch(41.59% 0.174 298.5)
XYZxyz(11.0222, 6.1764, 31.6154)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B299B #699B29
analogous
#29309B #5B299B #94299B
triadic
#5B299B #9B5B29 #299B5B
tetradic
#5B299B #9B2930 #699B29 #299B94
square
#5B299B #9B2930 #699B29 #299B94
split-complementary
#5B299B #9B9429 #309B29
monochromatic
#220F3A #3F1C6B #5B299B #7837CA #9867D7

Accessibility & contrast

On white

9.39
#5B299B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5B299B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B299B
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B299B#FFFFFF#000000##FFFFFF
##5B299B1.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469E
Deuteranopia (green-blind)
#004599
Tritanopia (blue-blind)
#4B465F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5b299b;
/* rgb */ color: rgb(91, 41, 155);
/* oklch */ color: oklch(41.6% 0.174 298.5);
Tailwind
colors: {
  custom: {
    50: '#8f67b9',
    500: '#5b299b',
    950: '#000000',
  },
}
SCSS
$custom: #5b299b;
$custom-light: #8f67b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b299b",
  "rgb": {
    "r": 91,
    "g": 41,
    "b": 155
  },
  "hsl": {
    "h": 266.316,
    "s": 58.163,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41591,
    "c": 0.17353,
    "h": 298.5
  },
  "luminance": 0.06177
}

Semantic roles & 50–950 ramp

primary
#5B299B
secondary
#95BD63
accent
#E1469D
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B299B

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

Preview Lab → · Contrast checker → · Palette generator →

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