#5D299E#5D299E

#5D299E is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.177 H 298.7°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#5D299E
RGBrgb(93, 41, 158)
HSLhsl(267, 59%, 39%)
HSVhsv(267, 74%, 62%)
CMYKcmyk(41.1%, 74.1%, 0%, 38%)
CIE-LABlab(30.36, 47.33, -54.38)
CIE-LCHlch(30.36, 72.09, 311.04°)
OKLaboklab(42.08% 0.0851 -0.1554)
OKLCHoklch(42.08% 0.177 298.7)
XYZxyz(11.4771, 6.3815, 32.9682)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D299E #6A9E29
analogous
#292F9E #5D299E #98299E
triadic
#5D299E #9E5D29 #299E5D
tetradic
#5D299E #9E292F #6A9E29 #299E98
square
#5D299E #9E292F #6A9E29 #299E98
split-complementary
#5D299E #9E9829 #2F9E29
monochromatic
#24103D #401C6D #5D299E #7A39CC #9B69D8

Accessibility & contrast

On white

9.23
#5D299E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5D299E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D299E
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D299E#FFFFFF#000000##FFFFFF
##5D299E1.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d299e;
/* rgb */ color: rgb(93, 41, 158);
/* oklch */ color: oklch(42.1% 0.177 298.7);
Tailwind
colors: {
  custom: {
    50: '#9168bc',
    500: '#5d299e',
    950: '#000000',
  },
}
SCSS
$custom: #5d299e;
$custom-light: #9168bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d299e",
  "rgb": {
    "r": 93,
    "g": 41,
    "b": 158
  },
  "hsl": {
    "h": 266.667,
    "s": 58.794,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42079,
    "c": 0.17714,
    "h": 298.7
  },
  "luminance": 0.06382
}

Semantic roles & 50–950 ramp

primary
#5D299E
secondary
#96BF64
accent
#E2469D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5D299E

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

Preview Lab → · Contrast checker → · Palette generator →

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