#5D299F#5D299F

#5D299F is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.2% C 0.178 H 298.4°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#5D299F
RGBrgb(93, 41, 159)
HSLhsl(266, 59%, 39%)
HSVhsv(266, 74%, 62%)
CMYKcmyk(41.5%, 74.2%, 0%, 37.6%)
CIE-LABlab(30.44, 47.59, -54.85)
CIE-LCHlch(30.44, 72.61, 310.94°)
OKLaboklab(42.16% 0.0848 -0.1568)
OKLCHoklch(42.16% 0.178 298.4)
XYZxyz(11.5635, 6.4161, 33.4234)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D299F #6B9F29
analogous
#29309F #5D299F #98299F
triadic
#5D299F #9F5D29 #299F5D
tetradic
#5D299F #9F2930 #6B9F29 #299F98
square
#5D299F #9F2930 #6B9F29 #299F98
split-complementary
#5D299F #9F9829 #309F29
monochromatic
#24103E #411C6E #5D299F #7A39CC #9B6AD9

Accessibility & contrast

On white

9.20
#5D299F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D299F
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D299F#FFFFFF#000000##FFFFFF
##5D299F1.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A2
Deuteranopia (green-blind)
#00469D
Tritanopia (blue-blind)
#4D4762
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5d299f;
/* rgb */ color: rgb(93, 41, 159);
/* oklch */ color: oklch(42.2% 0.178 298.4);
Tailwind
colors: {
  custom: {
    50: '#9168bc',
    500: '#5d299f',
    950: '#000000',
  },
}
SCSS
$custom: #5d299f;
$custom-light: #9168bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d299f",
  "rgb": {
    "r": 93,
    "g": 41,
    "b": 159
  },
  "hsl": {
    "h": 266.441,
    "s": 59,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42164,
    "c": 0.17825,
    "h": 298.4
  },
  "luminance": 0.06416
}

Semantic roles & 50–950 ramp

primary
#5D299F
secondary
#97BF65
accent
#E2469D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5D299F

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

Preview Lab → · Contrast checker → · Palette generator →

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