#5C337A#5C337A

#5C337A is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.6% C 0.120 H 308.6°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#5C337A
RGBrgb(92, 51, 122)
HSLhsl(275, 41%, 34%)
HSVhsv(275, 58%, 48%)
CMYKcmyk(24.6%, 58.2%, 0%, 52.2%)
CIE-LABlab(29.53, 32.55, -33.44)
CIE-LCHlch(29.53, 46.67, 314.23°)
OKLaboklab(40.63% 0.0752 -0.094)
OKLCHoklch(40.63% 0.12 308.6)
XYZxyz(9.1096, 6.0482, 19.0961)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C337A #517A33
analogous
#39337A #5C337A #7A3375
triadic
#5C337A #7A5C33 #337A5C
tetradic
#5C337A #7A3933 #517A33 #33757A
square
#5C337A #7A3933 #517A33 #33757A
split-complementary
#5C337A #757A33 #337A39
monochromatic
#1B0F24 #3B214F #5C337A #7D45A5 #9B68C0

Accessibility & contrast

On white

9.50
#5C337A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5C337A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C337A
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C337A#FFFFFF#000000##FFFFFF
##5C337A1.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B447C
Deuteranopia (green-blind)
#2A4678
Tritanopia (blue-blind)
#584051
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5c337a;
/* rgb */ color: rgb(92, 51, 122);
/* oklch */ color: oklch(40.6% 0.120 308.6);
Tailwind
colors: {
  custom: {
    50: '#8c6ca1',
    500: '#5c337a',
    950: '#000000',
  },
}
SCSS
$custom: #5c337a;
$custom-light: #8c6ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c337a",
  "rgb": {
    "r": 92,
    "g": 51,
    "b": 122
  },
  "hsl": {
    "h": 274.648,
    "s": 41.04,
    "l": 33.922
  },
  "oklch": {
    "l": 0.40629,
    "c": 0.12035,
    "h": 308.6
  },
  "luminance": 0.06048
}

Semantic roles & 50–950 ramp

primary
#5C337A
secondary
#7FA861
accent
#D1578A
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C070F
muted
#7D7A7E

Preview Lab

Preview with #5C337A

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

Preview Lab → · Contrast checker → · Palette generator →

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