#5C299B#5C299B

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

Color values

HEX#5C299B
RGBrgb(92, 41, 155)
HSLhsl(267, 58%, 38%)
HSVhsv(267, 74%, 61%)
CMYKcmyk(40.6%, 73.5%, 0%, 39.2%)
CIE-LABlab(29.98, 46.37, -53.17)
CIE-LCHlch(29.98, 70.55, 311.09°)
OKLaboklab(41.71% 0.0842 -0.1519)
OKLCHoklch(41.71% 0.174 299)
XYZxyz(11.1215, 6.2276, 31.6201)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C299B #689B29
analogous
#292F9B #5C299B #95299B
triadic
#5C299B #9B5C29 #299B5C
tetradic
#5C299B #9B292F #689B29 #299B95
square
#5C299B #9B292F #689B29 #299B95
split-complementary
#5C299B #9B9529 #2F9B29
monochromatic
#230F3A #3F1C6B #5C299B #7937CA #9967D7

Accessibility & contrast

On white

9.35
#5C299B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C299B
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C299B#FFFFFF#000000##FFFFFF
##5C299B1.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479E
Deuteranopia (green-blind)
#004699
Tritanopia (blue-blind)
#4D465F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5c299b;
/* rgb */ color: rgb(92, 41, 155);
/* oklch */ color: oklch(41.7% 0.174 299.0);
Tailwind
colors: {
  custom: {
    50: '#9068b9',
    500: '#5c299b',
    950: '#000000',
  },
}
SCSS
$custom: #5c299b;
$custom-light: #9068b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5c299b",
  "rgb": {
    "r": 92,
    "g": 41,
    "b": 155
  },
  "hsl": {
    "h": 266.842,
    "s": 58.163,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41708,
    "c": 0.17366,
    "h": 299
  },
  "luminance": 0.06228
}

Semantic roles & 50–950 ramp

primary
#5C299B
secondary
#95BD63
accent
#E1469C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5C299B

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

Preview Lab → · Contrast checker → · Palette generator →

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