#5C309E#5C309E

#5C309E is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.9% C 0.168 H 297.0°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#5C309E
RGBrgb(92, 48, 158)
HSLhsl(264, 53%, 40%)
HSVhsv(264, 70%, 62%)
CMYKcmyk(41.8%, 69.6%, 0%, 38%)
CIE-LABlab(31.48, 43.65, -52.55)
CIE-LCHlch(31.48, 68.31, 309.71°)
OKLaboklab(42.85% 0.0765 -0.1501)
OKLCHoklch(42.85% 0.168 297)
XYZxyz(11.6405, 6.8576, 33.0515)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C309E #729E30
analogous
#303B9E #5C309E #93309E
triadic
#5C309E #9E5C30 #309E5C
tetradic
#5C309E #9E303B #729E30 #309E93
square
#5C309E #9E303B #729E30 #309E93
split-complementary
#5C309E #9E9330 #3B9E30
monochromatic
#251340 #41226F #5C309E #7945C6 #9B74D5

Accessibility & contrast

On white

8.85
#5C309E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5C309E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C309E
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C309E#FFFFFF#000000##FFFFFF
##5C309E1.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA1
Deuteranopia (green-blind)
#00499C
Tritanopia (blue-blind)
#4B4B63
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5c309e;
/* rgb */ color: rgb(92, 48, 158);
/* oklch */ color: oklch(42.9% 0.168 297.0);
Tailwind
colors: {
  custom: {
    50: '#906cbb',
    500: '#5c309e',
    950: '#000000',
  },
}
SCSS
$custom: #5c309e;
$custom-light: #906cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#5c309e",
  "rgb": {
    "r": 92,
    "g": 48,
    "b": 158
  },
  "hsl": {
    "h": 264,
    "s": 53.398,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42852,
    "c": 0.16847,
    "h": 297
  },
  "luminance": 0.06858
}

Semantic roles & 50–950 ramp

primary
#5C309E
secondary
#9DBD6D
accent
#DD4BA2
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5C309E

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

Preview Lab → · Contrast checker → · Palette generator →

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