#5C309D#5C309D

#5C309D is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.8% C 0.167 H 297.3°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#5C309D
RGBrgb(92, 48, 157)
HSLhsl(264, 53%, 40%)
HSVhsv(264, 69%, 62%)
CMYKcmyk(41.4%, 69.4%, 0%, 38.4%)
CIE-LABlab(31.40, 43.38, -52.07)
CIE-LCHlch(31.40, 67.77, 309.79°)
OKLaboklab(42.77% 0.0767 -0.1487)
OKLCHoklch(42.77% 0.167 297.3)
XYZxyz(11.5548, 6.8233, 32.6000)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C309D #719D30
analogous
#303A9D #5C309D #92309D
triadic
#5C309D #9D5C30 #309D5C
tetradic
#5C309D #9D303A #719D30 #309D92
square
#5C309D #9D303A #719D30 #309D92
split-complementary
#5C309D #9D9230 #3A9D30
monochromatic
#25133F #41226E #5C309D #7944C6 #9A73D4

Accessibility & contrast

On white

8.88
#5C309D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5C309D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C309D
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C309D#FFFFFF#000000##FFFFFF
##5C309D1.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA0
Deuteranopia (green-blind)
#00499B
Tritanopia (blue-blind)
#4C4A62
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5c309d;
/* rgb */ color: rgb(92, 48, 157);
/* oklch */ color: oklch(42.8% 0.167 297.3);
Tailwind
colors: {
  custom: {
    50: '#906cbb',
    500: '#5c309d',
    950: '#000000',
  },
}
SCSS
$custom: #5c309d;
$custom-light: #906cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#5c309d",
  "rgb": {
    "r": 92,
    "g": 48,
    "b": 157
  },
  "hsl": {
    "h": 264.22,
    "s": 53.171,
    "l": 40.196
  },
  "oklch": {
    "l": 0.4277,
    "c": 0.16729,
    "h": 297.3
  },
  "luminance": 0.06824
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5C309D

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

Preview Lab → · Contrast checker → · Palette generator →

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