#5C299F#5C299F

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

Color values

HEX#5C299F
RGBrgb(92, 41, 159)
HSLhsl(266, 59%, 39%)
HSVhsv(266, 74%, 62%)
CMYKcmyk(42.1%, 74.2%, 0%, 37.6%)
CIE-LABlab(30.31, 47.41, -55.06)
CIE-LCHlch(30.31, 72.66, 310.73°)
OKLaboklab(42.05% 0.0834 -0.1574)
OKLCHoklch(42.05% 0.178 297.9)
XYZxyz(11.4630, 6.3642, 33.4186)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C299F #6C9F29
analogous
#29319F #5C299F #97299F
triadic
#5C299F #9F5C29 #299F5C
tetradic
#5C299F #9F2931 #6C9F29 #299F97
square
#5C299F #9F2931 #6C9F29 #299F97
split-complementary
#5C299F #9F9729 #319F29
monochromatic
#24103E #401C6E #5C299F #7939CC #9A6AD9

Accessibility & contrast

On white

9.24
#5C299F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C299F
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C299F#FFFFFF#000000##FFFFFF
##5C299F1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c299f;
/* rgb */ color: rgb(92, 41, 159);
/* oklch */ color: oklch(42.0% 0.178 297.9);
Tailwind
colors: {
  custom: {
    50: '#9068bc',
    500: '#5c299f',
    950: '#000000',
  },
}
SCSS
$custom: #5c299f;
$custom-light: #9068bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5c299f",
  "rgb": {
    "r": 92,
    "g": 41,
    "b": 159
  },
  "hsl": {
    "h": 265.932,
    "s": 59,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42048,
    "c": 0.17813,
    "h": 297.9
  },
  "luminance": 0.06364
}

Semantic roles & 50–950 ramp

primary
#5C299F
secondary
#98BF65
accent
#E2469F
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5C299F

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

Preview Lab → · Contrast checker → · Palette generator →

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