#5C3397#5C3397

#5C3397 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.7% C 0.156 H 298.4°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#5C3397
RGBrgb(92, 51, 151)
HSLhsl(265, 50%, 40%)
HSVhsv(265, 66%, 59%)
CMYKcmyk(39.1%, 66.2%, 0%, 40.8%)
CIE-LABlab(31.53, 40.15, -48.22)
CIE-LCHlch(31.53, 62.74, 309.78°)
OKLaboklab(42.71% 0.0741 -0.1373)
OKLCHoklch(42.71% 0.156 298.4)
XYZxyz(11.1820, 6.8772, 30.0105)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C3397 #6E9733
analogous
#333C97 #5C3397 #8E3397
triadic
#5C3397 #975C33 #33975C
tetradic
#5C3397 #97333C #6E9733 #33978E
square
#5C3397 #97333C #6E9733 #33978E
split-complementary
#5C3397 #978E33 #3C9733
monochromatic
#24143C #402469 #5C3397 #7947C1 #9A74D0

Accessibility & contrast

On white

8.84
#5C3397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5C3397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C3397
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C3397#FFFFFF#000000##FFFFFF
##5C33971.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9A
Deuteranopia (green-blind)
#004995
Tritanopia (blue-blind)
#4E4A60
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5c3397;
/* rgb */ color: rgb(92, 51, 151);
/* oklch */ color: oklch(42.7% 0.156 298.4);
Tailwind
colors: {
  custom: {
    50: '#8f6db6',
    500: '#5c3397',
    950: '#000000',
  },
}
SCSS
$custom: #5c3397;
$custom-light: #8f6db6;
$custom-dark: #000000;
JSON
{
  "hex": "#5c3397",
  "rgb": {
    "r": 92,
    "g": 51,
    "b": 151
  },
  "hsl": {
    "h": 264.6,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42714,
    "c": 0.15609,
    "h": 298.4
  },
  "luminance": 0.06877
}

Semantic roles & 50–950 ramp

primary
#5C3397
secondary
#9AB86D
accent
#D94FA0
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5C3397

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

Preview Lab → · Contrast checker → · Palette generator →

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