#5B299E#5B299E

#5B299E is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.177 H 297.7°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#5B299E
RGBrgb(91, 41, 158)
HSLhsl(266, 59%, 39%)
HSVhsv(266, 74%, 62%)
CMYKcmyk(42.4%, 74.1%, 0%, 38%)
CIE-LABlab(30.10, 46.97, -54.80)
CIE-LCHlch(30.10, 72.17, 310.60°)
OKLaboklab(41.85% 0.0821 -0.1567)
OKLCHoklch(41.85% 0.177 297.7)
XYZxyz(11.2773, 6.2784, 32.9588)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B299E #6C9E29
analogous
#29329E #5B299E #96299E
triadic
#5B299E #9E5B29 #299E5B
tetradic
#5B299E #9E2932 #6C9E29 #299E96
square
#5B299E #9E2932 #6C9E29 #299E96
split-complementary
#5B299E #9E9629 #329E29
monochromatic
#23103D #3F1C6D #5B299E #7739CC #9969D8

Accessibility & contrast

On white

9.31
#5B299E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5B299E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B299E
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B299E#FFFFFF#000000##FFFFFF
##5B299E1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A1
Deuteranopia (green-blind)
#00469C
Tritanopia (blue-blind)
#4A4761
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5b299e;
/* rgb */ color: rgb(91, 41, 158);
/* oklch */ color: oklch(41.8% 0.177 297.7);
Tailwind
colors: {
  custom: {
    50: '#9068bc',
    500: '#5b299e',
    950: '#000000',
  },
}
SCSS
$custom: #5b299e;
$custom-light: #9068bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b299e",
  "rgb": {
    "r": 91,
    "g": 41,
    "b": 158
  },
  "hsl": {
    "h": 265.641,
    "s": 58.794,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41846,
    "c": 0.17689,
    "h": 297.7
  },
  "luminance": 0.06279
}

Semantic roles & 50–950 ramp

primary
#5B299E
secondary
#98BF64
accent
#E2469F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B299E

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

Preview Lab → · Contrast checker → · Palette generator →

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