#5E299A#5E299A

#5E299A is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.9% C 0.173 H 300.4°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#5E299A
RGBrgb(94, 41, 154)
HSLhsl(268, 58%, 38%)
HSVhsv(268, 73%, 60%)
CMYKcmyk(39%, 73.4%, 0%, 39.6%)
CIE-LABlab(30.15, 46.49, -52.26)
CIE-LCHlch(30.15, 69.95, 311.65°)
OKLaboklab(41.86% 0.0874 -0.1491)
OKLCHoklch(41.86% 0.173 300.4)
XYZxyz(11.2403, 6.2986, 31.1891)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E299A #659A29
analogous
#292C9A #5E299A #96299A
triadic
#5E299A #9A5E29 #299A5E
tetradic
#5E299A #9A292C #659A29 #299A96
square
#5E299A #9A292C #659A29 #299A96
split-complementary
#5E299A #9A9629 #2C9A29
monochromatic
#230F39 #401C6A #5E299A #7C37CA #9B67D7

Accessibility & contrast

On white

9.29
#5E299A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E299A
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E299A#FFFFFF#000000##FFFFFF
##5E299A1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479D
Deuteranopia (green-blind)
#004698
Tritanopia (blue-blind)
#50455F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5e299a;
/* rgb */ color: rgb(94, 41, 154);
/* oklch */ color: oklch(41.9% 0.173 300.4);
Tailwind
colors: {
  custom: {
    50: '#9168b9',
    500: '#5e299a',
    950: '#000000',
  },
}
SCSS
$custom: #5e299a;
$custom-light: #9168b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e299a",
  "rgb": {
    "r": 94,
    "g": 41,
    "b": 154
  },
  "hsl": {
    "h": 268.142,
    "s": 57.949,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41862,
    "c": 0.17286,
    "h": 300.4
  },
  "luminance": 0.06299
}

Semantic roles & 50–950 ramp

primary
#5E299A
secondary
#92BD62
accent
#E14799
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E299A

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

Preview Lab → · Contrast checker → · Palette generator →

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