#5D299B#5D299B

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

Color values

HEX#5D299B
RGBrgb(93, 41, 155)
HSLhsl(267, 58%, 38%)
HSVhsv(267, 74%, 61%)
CMYKcmyk(40%, 73.5%, 0%, 39.2%)
CIE-LABlab(30.11, 46.55, -52.96)
CIE-LCHlch(30.11, 70.51, 311.32°)
OKLaboklab(41.83% 0.0857 -0.1512)
OKLCHoklch(41.83% 0.174 299.5)
XYZxyz(11.2220, 6.2795, 31.6248)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D299B #679B29
analogous
#292E9B #5D299B #96299B
triadic
#5D299B #9B5D29 #299B5D
tetradic
#5D299B #9B292E #679B29 #299B96
square
#5D299B #9B292E #679B29 #299B96
split-complementary
#5D299B #9B9629 #2E9B29
monochromatic
#230F3A #401C6B #5D299B #7A37CA #9A67D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5D299B#FFFFFF#000000##FFFFFF
##5D299B1.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)
#00479E
Deuteranopia (green-blind)
#004699
Tritanopia (blue-blind)
#4E465F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5d299b;
/* rgb */ color: rgb(93, 41, 155);
/* oklch */ color: oklch(41.8% 0.174 299.5);
Tailwind
colors: {
  custom: {
    50: '#9168b9',
    500: '#5d299b',
    950: '#000000',
  },
}
SCSS
$custom: #5d299b;
$custom-light: #9168b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d299b",
  "rgb": {
    "r": 93,
    "g": 41,
    "b": 155
  },
  "hsl": {
    "h": 267.368,
    "s": 58.163,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41826,
    "c": 0.17381,
    "h": 299.5
  },
  "luminance": 0.0628
}

Semantic roles & 50–950 ramp

primary
#5D299B
secondary
#94BD63
accent
#E1469B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5D299B

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

Preview Lab → · Contrast checker → · Palette generator →

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