#5D299A#5D299A

#5D299A is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.173 H 299.8°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#5D299A
RGBrgb(93, 41, 154)
HSLhsl(268, 58%, 38%)
HSVhsv(268, 73%, 60%)
CMYKcmyk(39.6%, 73.4%, 0%, 39.6%)
CIE-LABlab(30.02, 46.30, -52.48)
CIE-LCHlch(30.02, 69.98, 311.42°)
OKLaboklab(41.74% 0.0859 -0.1498)
OKLCHoklch(41.74% 0.173 299.8)
XYZxyz(11.1384, 6.2460, 31.1844)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D299A #669A29
analogous
#292D9A #5D299A #95299A
triadic
#5D299A #9A5D29 #299A5D
tetradic
#5D299A #9A292D #669A29 #299A95
square
#5D299A #9A292D #669A29 #299A95
split-complementary
#5D299A #9A9529 #2D9A29
monochromatic
#230F39 #401C6A #5D299A #7A37CA #9A67D7

Accessibility & contrast

On white

9.34
#5D299A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5D299A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D299A
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D299A#FFFFFF#000000##FFFFFF
##5D299A1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469D
Deuteranopia (green-blind)
#004698
Tritanopia (blue-blind)
#4F455F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5d299a;
/* rgb */ color: rgb(93, 41, 154);
/* oklch */ color: oklch(41.7% 0.173 299.8);
Tailwind
colors: {
  custom: {
    50: '#9168b9',
    500: '#5d299a',
    950: '#000000',
  },
}
SCSS
$custom: #5d299a;
$custom-light: #9168b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d299a",
  "rgb": {
    "r": 93,
    "g": 41,
    "b": 154
  },
  "hsl": {
    "h": 267.611,
    "s": 57.949,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41743,
    "c": 0.1727,
    "h": 299.8
  },
  "luminance": 0.06246
}

Semantic roles & 50–950 ramp

primary
#5D299A
secondary
#93BD62
accent
#E1479A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D299A

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

Preview Lab → · Contrast checker → · Palette generator →

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