#5C339B#5C339B

#5C339B is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.0% C 0.161 H 297.2°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#5C339B
RGBrgb(92, 51, 155)
HSLhsl(264, 50%, 40%)
HSVhsv(264, 67%, 61%)
CMYKcmyk(40.6%, 67.1%, 0%, 39.2%)
CIE-LABlab(31.83, 41.23, -50.16)
CIE-LCHlch(31.83, 64.93, 309.42°)
OKLaboklab(43.03% 0.0737 -0.1431)
OKLCHoklch(43.03% 0.161 297.2)
XYZxyz(11.5123, 7.0093, 31.7504)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C339B #729B33
analogous
#333E9B #5C339B #90339B
triadic
#5C339B #9B5C33 #339B5C
tetradic
#5C339B #9B333E #729B33 #339B90
square
#5C339B #9B333E #729B33 #339B90
split-complementary
#5C339B #9B9033 #3E9B33
monochromatic
#25153F #41246D #5C339B #7948C3 #9B76D2

Accessibility & contrast

On white

8.74
#5C339B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5C339B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C339B
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C339B#FFFFFF#000000##FFFFFF
##5C339B1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9E
Deuteranopia (green-blind)
#004A99
Tritanopia (blue-blind)
#4C4B62
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5c339b;
/* rgb */ color: rgb(92, 51, 155);
/* oklch */ color: oklch(43.0% 0.161 297.2);
Tailwind
colors: {
  custom: {
    50: '#8f6db9',
    500: '#5c339b',
    950: '#000000',
  },
}
SCSS
$custom: #5c339b;
$custom-light: #8f6db9;
$custom-dark: #000000;
JSON
{
  "hex": "#5c339b",
  "rgb": {
    "r": 92,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 263.654,
    "s": 50.485,
    "l": 40.392
  },
  "oklch": {
    "l": 0.43027,
    "c": 0.16094,
    "h": 297.2
  },
  "luminance": 0.0701
}

Semantic roles & 50–950 ramp

primary
#5C339B
secondary
#9DBA6F
accent
#DA4EA3
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5C339B

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

Preview Lab → · Contrast checker → · Palette generator →

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