#5C299D#5C299D

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

Color values

HEX#5C299D
RGBrgb(92, 41, 157)
HSLhsl(266, 59%, 39%)
HSVhsv(266, 74%, 62%)
CMYKcmyk(41.4%, 73.9%, 0%, 38.4%)
CIE-LABlab(30.15, 46.89, -54.12)
CIE-LCHlch(30.15, 71.60, 310.91°)
OKLaboklab(41.88% 0.0838 -0.1546)
OKLCHoklch(41.88% 0.176 298.5)
XYZxyz(11.2908, 6.2953, 32.5120)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C299D #6A9D29
analogous
#29309D #5C299D #96299D
triadic
#5C299D #9D5C29 #299D5C
tetradic
#5C299D #9D2930 #6A9D29 #299D96
square
#5C299D #9D2930 #6A9D29 #299D96
split-complementary
#5C299D #9D9629 #309D29
monochromatic
#23103C #401C6C #5C299D #7938CB #9969D8

Accessibility & contrast

On white

9.30
#5C299D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C299D
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C299D#FFFFFF#000000##FFFFFF
##5C299D1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c299d;
/* rgb */ color: rgb(92, 41, 157);
/* oklch */ color: oklch(41.9% 0.176 298.5);
Tailwind
colors: {
  custom: {
    50: '#9068bb',
    500: '#5c299d',
    950: '#000000',
  },
}
SCSS
$custom: #5c299d;
$custom-light: #9068bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5c299d",
  "rgb": {
    "r": 92,
    "g": 41,
    "b": 157
  },
  "hsl": {
    "h": 266.379,
    "s": 58.586,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41877,
    "c": 0.1759,
    "h": 298.5
  },
  "luminance": 0.06296
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5C299D

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

Preview Lab → · Contrast checker → · Palette generator →

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