#5C299A#5C299A

#5C299A is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.173 H 299.3°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#5C299A
RGBrgb(92, 41, 154)
HSLhsl(267, 58%, 38%)
HSVhsv(267, 73%, 60%)
CMYKcmyk(40.3%, 73.4%, 0%, 39.6%)
CIE-LABlab(29.90, 46.11, -52.69)
CIE-LCHlch(29.90, 70.02, 311.19°)
OKLaboklab(41.62% 0.0844 -0.1505)
OKLCHoklch(41.62% 0.173 299.3)
XYZxyz(11.0378, 6.1941, 31.1796)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C299A #679A29
analogous
#292E9A #5C299A #94299A
triadic
#5C299A #9A5C29 #299A5C
tetradic
#5C299A #9A292E #679A29 #299A94
square
#5C299A #9A292E #679A29 #299A94
split-complementary
#5C299A #9A9429 #2E9A29
monochromatic
#220F39 #3F1C6A #5C299A #7937CA #9967D7

Accessibility & contrast

On white

9.38
#5C299A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5C299A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C299A
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C299A#FFFFFF#000000##FFFFFF
##5C299A1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469D
Deuteranopia (green-blind)
#004598
Tritanopia (blue-blind)
#4D455F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5c299a;
/* rgb */ color: rgb(92, 41, 154);
/* oklch */ color: oklch(41.6% 0.173 299.3);
Tailwind
colors: {
  custom: {
    50: '#9068b9',
    500: '#5c299a',
    950: '#000000',
  },
}
SCSS
$custom: #5c299a;
$custom-light: #9068b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5c299a",
  "rgb": {
    "r": 92,
    "g": 41,
    "b": 154
  },
  "hsl": {
    "h": 267.08,
    "s": 57.949,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41624,
    "c": 0.17254,
    "h": 299.3
  },
  "luminance": 0.06194
}

Semantic roles & 50–950 ramp

primary
#5C299A
secondary
#94BD62
accent
#E1479B
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C299A

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

Preview Lab → · Contrast checker → · Palette generator →

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