#5D299D#5D299D

#5D299D is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.0% C 0.176 H 299.0°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#5D299D
RGBrgb(93, 41, 157)
HSLhsl(267, 59%, 39%)
HSVhsv(267, 74%, 62%)
CMYKcmyk(40.8%, 73.9%, 0%, 38.4%)
CIE-LABlab(30.27, 47.07, -53.90)
CIE-LCHlch(30.27, 71.56, 311.13°)
OKLaboklab(42% 0.0853 -0.154)
OKLCHoklch(42% 0.176 299)
XYZxyz(11.3914, 6.3472, 32.5167)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D299D #699D29
analogous
#292F9D #5D299D #97299D
triadic
#5D299D #9D5D29 #299D5D
tetradic
#5D299D #9D292F #699D29 #299D97
square
#5D299D #9D292F #699D29 #299D97
split-complementary
#5D299D #9D9729 #2F9D29
monochromatic
#24103C #401C6C #5D299D #7A38CB #9A69D8

Accessibility & contrast

On white

9.25
#5D299D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5D299D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D299D
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D299D#FFFFFF#000000##FFFFFF
##5D299D1.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A0
Deuteranopia (green-blind)
#00469B
Tritanopia (blue-blind)
#4E4661
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5d299d;
/* rgb */ color: rgb(93, 41, 157);
/* oklch */ color: oklch(42.0% 0.176 299.0);
Tailwind
colors: {
  custom: {
    50: '#9168bb',
    500: '#5d299d',
    950: '#000000',
  },
}
SCSS
$custom: #5d299d;
$custom-light: #9168bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5d299d",
  "rgb": {
    "r": 93,
    "g": 41,
    "b": 157
  },
  "hsl": {
    "h": 266.897,
    "s": 58.586,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41995,
    "c": 0.17603,
    "h": 299
  },
  "luminance": 0.06347
}

Semantic roles & 50–950 ramp

primary
#5D299D
secondary
#96BE64
accent
#E2469C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5D299D

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

Preview Lab → · Contrast checker → · Palette generator →

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