#5C299E#5C299E

#5C299E is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.0% C 0.177 H 298.2°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#5C299E
RGBrgb(92, 41, 158)
HSLhsl(266, 59%, 39%)
HSVhsv(266, 74%, 62%)
CMYKcmyk(41.8%, 74.1%, 0%, 38%)
CIE-LABlab(30.23, 47.15, -54.59)
CIE-LCHlch(30.23, 72.13, 310.82°)
OKLaboklab(41.96% 0.0836 -0.156)
OKLCHoklch(41.96% 0.177 298.2)
XYZxyz(11.3765, 6.3296, 32.9635)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C299E #6B9E29
analogous
#29319E #5C299E #97299E
triadic
#5C299E #9E5C29 #299E5C
tetradic
#5C299E #9E2931 #6B9E29 #299E97
square
#5C299E #9E2931 #6B9E29 #299E97
split-complementary
#5C299E #9E9729 #319E29
monochromatic
#23103D #401C6D #5C299E #7939CC #9A69D8

Accessibility & contrast

On white

9.27
#5C299E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5C299E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C299E
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C299E#FFFFFF#000000##FFFFFF
##5C299E1.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A1
Deuteranopia (green-blind)
#00469C
Tritanopia (blue-blind)
#4C4761
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5c299e;
/* rgb */ color: rgb(92, 41, 158);
/* oklch */ color: oklch(42.0% 0.177 298.2);
Tailwind
colors: {
  custom: {
    50: '#9068bc',
    500: '#5c299e',
    950: '#000000',
  },
}
SCSS
$custom: #5c299e;
$custom-light: #9068bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5c299e",
  "rgb": {
    "r": 92,
    "g": 41,
    "b": 158
  },
  "hsl": {
    "h": 266.154,
    "s": 58.794,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41962,
    "c": 0.17701,
    "h": 298.2
  },
  "luminance": 0.0633
}

Semantic roles & 50–950 ramp

primary
#5C299E
secondary
#97BF64
accent
#E2469E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5C299E

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

Preview Lab → · Contrast checker → · Palette generator →

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