#5C398E#5C398E

#5C398E is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.0% C 0.136 H 299.7°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#5C398E
RGBrgb(92, 57, 142)
HSLhsl(265, 43%, 39%)
HSVhsv(265, 60%, 56%)
CMYKcmyk(35.2%, 59.9%, 0%, 44.3%)
CIE-LABlab(32.16, 34.29, -41.69)
CIE-LCHlch(32.16, 53.98, 309.44°)
OKLaboklab(42.97% 0.0673 -0.1182)
OKLCHoklch(42.97% 0.136 299.7)
XYZxyz(10.7581, 7.1545, 26.4001)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C398E #6B8E39
analogous
#39418E #5C398E #87398E
triadic
#5C398E #8E5C39 #398E5C
tetradic
#5C398E #8E3941 #6B8E39 #398E87
square
#5C398E #8E3941 #6B8E39 #398E87
split-complementary
#5C398E #8E8739 #418E39
monochromatic
#231637 #402762 #5C398E #794DB7 #9A78C9

Accessibility & contrast

On white

8.64
#5C398E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5C398E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C398E
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C398E#FFFFFF#000000##FFFFFF
##5C398E1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4B91
Deuteranopia (green-blind)
#1E4B8C
Tritanopia (blue-blind)
#514B5E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5c398e;
/* rgb */ color: rgb(92, 57, 142);
/* oklch */ color: oklch(43.0% 0.136 299.7);
Tailwind
colors: {
  custom: {
    50: '#8e71b0',
    500: '#5c398e',
    950: '#000000',
  },
}
SCSS
$custom: #5c398e;
$custom-light: #8e71b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c398e",
  "rgb": {
    "r": 92,
    "g": 57,
    "b": 142
  },
  "hsl": {
    "h": 264.706,
    "s": 42.714,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42969,
    "c": 0.13598,
    "h": 299.7
  },
  "luminance": 0.07155
}

Semantic roles & 50–950 ramp

primary
#5C398E
secondary
#97B271
accent
#D2559F
background
#F8F6FA
surface
#F0ECF5
border
#CBC7CF
text
#0D0810
muted
#7D7B7F

Preview Lab

Preview with #5C398E

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

Preview Lab → · Contrast checker → · Palette generator →

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