#5C309F#5C309F

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

Color values

HEX#5C309F
RGBrgb(92, 48, 159)
HSLhsl(264, 54%, 41%)
HSVhsv(264, 70%, 62%)
CMYKcmyk(42.1%, 69.8%, 0%, 37.6%)
CIE-LABlab(31.56, 43.91, -53.03)
CIE-LCHlch(31.56, 68.85, 309.63°)
OKLaboklab(42.93% 0.0764 -0.1515)
OKLCHoklch(42.93% 0.17 296.8)
XYZxyz(11.7270, 6.8922, 33.5066)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C309F #739F30
analogous
#303B9F #5C309F #93309F
triadic
#5C309F #9F5C30 #309F5C
tetradic
#5C309F #9F303B #739F30 #309F93
square
#5C309F #9F303B #739F30 #309F93
split-complementary
#5C309F #9F9330 #3B9F30
monochromatic
#261441 #412270 #5C309F #7945C7 #9B74D5

Accessibility & contrast

On white

8.83
#5C309F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C309F
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C309F#FFFFFF#000000##FFFFFF
##5C309F1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA2
Deuteranopia (green-blind)
#00499D
Tritanopia (blue-blind)
#4B4B64
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5c309f;
/* rgb */ color: rgb(92, 48, 159);
/* oklch */ color: oklch(42.9% 0.170 296.8);
Tailwind
colors: {
  custom: {
    50: '#906cbc',
    500: '#5c309f',
    950: '#000000',
  },
}
SCSS
$custom: #5c309f;
$custom-light: #906cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#5c309f",
  "rgb": {
    "r": 92,
    "g": 48,
    "b": 159
  },
  "hsl": {
    "h": 263.784,
    "s": 53.623,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42933,
    "c": 0.16965,
    "h": 296.8
  },
  "luminance": 0.06892
}

Semantic roles & 50–950 ramp

primary
#5C309F
secondary
#9EBD6E
accent
#DD4BA3
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5C309F

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

Preview Lab → · Contrast checker → · Palette generator →

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