#5B299F#5B299F

#5B299F is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.9% C 0.178 H 297.4°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#5B299F
RGBrgb(91, 41, 159)
HSLhsl(265, 59%, 39%)
HSVhsv(265, 74%, 62%)
CMYKcmyk(42.8%, 74.2%, 0%, 37.6%)
CIE-LABlab(30.19, 47.23, -55.27)
CIE-LCHlch(30.19, 72.70, 310.52°)
OKLaboklab(41.93% 0.0819 -0.1581)
OKLCHoklch(41.93% 0.178 297.4)
XYZxyz(11.3637, 6.3130, 33.4140)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B299F #6D9F29
analogous
#29329F #5B299F #96299F
triadic
#5B299F #9F5B29 #299F5B
tetradic
#5B299F #9F2932 #6D9F29 #299F96
square
#5B299F #9F2932 #6D9F29 #299F96
split-complementary
#5B299F #9F9629 #329F29
monochromatic
#23103E #3F1C6E #5B299F #7739CC #996AD9

Accessibility & contrast

On white

9.28
#5B299F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B299F
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B299F#FFFFFF#000000##FFFFFF
##5B299F1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A2
Deuteranopia (green-blind)
#00469D
Tritanopia (blue-blind)
#4A4762
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5b299f;
/* rgb */ color: rgb(91, 41, 159);
/* oklch */ color: oklch(41.9% 0.178 297.4);
Tailwind
colors: {
  custom: {
    50: '#9068bc',
    500: '#5b299f',
    950: '#000000',
  },
}
SCSS
$custom: #5b299f;
$custom-light: #9068bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b299f",
  "rgb": {
    "r": 91,
    "g": 41,
    "b": 159
  },
  "hsl": {
    "h": 265.424,
    "s": 59,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41932,
    "c": 0.17801,
    "h": 297.4
  },
  "luminance": 0.06313
}

Semantic roles & 50–950 ramp

primary
#5B299F
secondary
#99BF65
accent
#E246A0
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B299F

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

Preview Lab → · Contrast checker → · Palette generator →

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