#5C337B#5C337B

#5C337B is a dark, vivid violet. Relative luminance 0.061; OKLCH L 40.7% C 0.122 H 308.2°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#5C337B
RGBrgb(92, 51, 123)
HSLhsl(274, 41%, 34%)
HSVhsv(274, 59%, 48%)
CMYKcmyk(25.2%, 58.5%, 0%, 51.8%)
CIE-LABlab(29.60, 32.80, -33.97)
CIE-LCHlch(29.60, 47.22, 314.00°)
OKLaboklab(40.7% 0.0752 -0.0955)
OKLCHoklch(40.7% 0.122 308.2)
XYZxyz(9.1719, 6.0732, 19.4241)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C337B #527B33
analogous
#38337B #5C337B #7B3376
triadic
#5C337B #7B5C33 #337B5C
tetradic
#5C337B #7B3833 #527B33 #33767B
square
#5C337B #7B3833 #527B33 #33767B
split-complementary
#5C337B #767B33 #337B38
monochromatic
#1B0F24 #3C2150 #5C337B #7C45A6 #9A68C0

Accessibility & contrast

On white

9.48
#5C337B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C337B
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C337B#FFFFFF#000000##FFFFFF
##5C337B1.009.482.219.48
#FFFFFF9.481.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A447D
Deuteranopia (green-blind)
#294679
Tritanopia (blue-blind)
#574052
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5c337b;
/* rgb */ color: rgb(92, 51, 123);
/* oklch */ color: oklch(40.7% 0.122 308.2);
Tailwind
colors: {
  custom: {
    50: '#8c6ca1',
    500: '#5c337b',
    950: '#000000',
  },
}
SCSS
$custom: #5c337b;
$custom-light: #8c6ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c337b",
  "rgb": {
    "r": 92,
    "g": 51,
    "b": 123
  },
  "hsl": {
    "h": 274.167,
    "s": 41.379,
    "l": 34.118
  },
  "oklch": {
    "l": 0.40695,
    "c": 0.12159,
    "h": 308.2
  },
  "luminance": 0.06073
}

Semantic roles & 50–950 ramp

primary
#5C337B
secondary
#80A862
accent
#D1578B
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5C337B

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

Preview Lab → · Contrast checker → · Palette generator →

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