#5C3F8A#5C3F8A

#5C3F8A is a dark, vivid violet. Relative luminance 0.077; OKLCH L 43.7% C 0.121 H 299.2°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#5C3F8A
RGBrgb(92, 63, 138)
HSLhsl(263, 37%, 39%)
HSVhsv(263, 54%, 54%)
CMYKcmyk(33.3%, 54.3%, 0%, 45.9%)
CIE-LABlab(33.28, 29.61, -37.43)
CIE-LCHlch(33.28, 47.73, 308.35°)
OKLaboklab(43.71% 0.059 -0.1057)
OKLCHoklch(43.71% 0.121 299.2)
XYZxyz(10.7775, 7.6652, 24.9516)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C3F8A #6D8A3F
analogous
#3F488A #5C3F8A #823F8A
triadic
#5C3F8A #8A5C3F #3F8A5C
tetradic
#5C3F8A #8A3F48 #6D8A3F #3F8A82
square
#5C3F8A #8A3F48 #6D8A3F #3F8A82
split-complementary
#5C3F8A #8A823F #488A3F
monochromatic
#241936 #402C60 #5C3F8A #7955B1 #9A7FC5

Accessibility & contrast

On white

8.29
#5C3F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#5C3F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C3F8A
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C3F8A#FFFFFF#000000##FFFFFF
##5C3F8A1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234E8D
Deuteranopia (green-blind)
#2B4E88
Tritanopia (blue-blind)
#524E5E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5c3f8a;
/* rgb */ color: rgb(92, 63, 138);
/* oklch */ color: oklch(43.7% 0.121 299.2);
Tailwind
colors: {
  custom: {
    50: '#8d75ac',
    500: '#5c3f8a',
    950: '#000000',
  },
}
SCSS
$custom: #5c3f8a;
$custom-light: #8d75ac;
$custom-dark: #000000;
JSON
{
  "hex": "#5c3f8a",
  "rgb": {
    "r": 92,
    "g": 63,
    "b": 138
  },
  "hsl": {
    "h": 263.2,
    "s": 37.313,
    "l": 39.412
  },
  "oklch": {
    "l": 0.4371,
    "c": 0.12107,
    "h": 299.2
  },
  "luminance": 0.07665
}

Semantic roles & 50–950 ramp

primary
#5C3F8A
secondary
#99AF76
accent
#CD5BA1
background
#F8F7FA
surface
#F0EDF4
border
#CBC8CE
text
#0C0810
muted
#7D7B7F

Preview Lab

Preview with #5C3F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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