#5B299A#5B299A

#5B299A is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.5% C 0.172 H 298.8°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#5B299A
RGBrgb(91, 41, 154)
HSLhsl(267, 58%, 38%)
HSVhsv(267, 73%, 60%)
CMYKcmyk(40.9%, 73.4%, 0%, 39.6%)
CIE-LABlab(29.77, 45.92, -52.90)
CIE-LCHlch(29.77, 70.06, 310.96°)
OKLaboklab(41.51% 0.083 -0.1511)
OKLCHoklch(41.51% 0.172 298.8)
XYZxyz(10.9386, 6.1430, 31.1750)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B299A #689A29
analogous
#292F9A #5B299A #93299A
triadic
#5B299A #9A5B29 #299A5B
tetradic
#5B299A #9A292F #689A29 #299A93
square
#5B299A #9A292F #689A29 #299A93
split-complementary
#5B299A #9A9329 #2F9A29
monochromatic
#220F39 #3E1C6A #5B299A #7837CA #9867D7

Accessibility & contrast

On white

9.42
#5B299A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5B299A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B299A
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B299A#FFFFFF#000000##FFFFFF
##5B299A1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469D
Deuteranopia (green-blind)
#004598
Tritanopia (blue-blind)
#4C455F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5b299a;
/* rgb */ color: rgb(91, 41, 154);
/* oklch */ color: oklch(41.5% 0.172 298.8);
Tailwind
colors: {
  custom: {
    50: '#8f67b9',
    500: '#5b299a',
    950: '#000000',
  },
}
SCSS
$custom: #5b299a;
$custom-light: #8f67b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b299a",
  "rgb": {
    "r": 91,
    "g": 41,
    "b": 154
  },
  "hsl": {
    "h": 266.549,
    "s": 57.949,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41506,
    "c": 0.1724,
    "h": 298.8
  },
  "luminance": 0.06143
}

Semantic roles & 50–950 ramp

primary
#5B299A
secondary
#95BD62
accent
#E1479D
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B299A

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

Preview Lab → · Contrast checker → · Palette generator →

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