#5C339A#5C339A

#5C339A is a dark, vivid violet. Relative luminance 0.070; OKLCH L 42.9% C 0.160 H 297.5°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#5C339A
RGBrgb(92, 51, 154)
HSLhsl(264, 50%, 40%)
HSVhsv(264, 67%, 60%)
CMYKcmyk(40.3%, 66.9%, 0%, 39.6%)
CIE-LABlab(31.75, 40.96, -49.68)
CIE-LCHlch(31.75, 64.39, 309.51°)
OKLaboklab(42.95% 0.0738 -0.1416)
OKLCHoklch(42.95% 0.16 297.5)
XYZxyz(11.4287, 6.9759, 31.3099)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C339A #719A33
analogous
#333E9A #5C339A #8F339A
triadic
#5C339A #9A5C33 #339A5C
tetradic
#5C339A #9A333E #719A33 #339A8F
square
#5C339A #9A333E #719A33 #339A8F
split-complementary
#5C339A #9A8F33 #3E9A33
monochromatic
#25153E #41246C #5C339A #7948C2 #9A76D2

Accessibility & contrast

On white

8.77
#5C339A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C339A
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C339A#FFFFFF#000000##FFFFFF
##5C339A1.008.772.408.77
#FFFFFF8.771.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9D
Deuteranopia (green-blind)
#004A98
Tritanopia (blue-blind)
#4D4B62
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5c339a;
/* rgb */ color: rgb(92, 51, 154);
/* oklch */ color: oklch(42.9% 0.160 297.5);
Tailwind
colors: {
  custom: {
    50: '#8f6db8',
    500: '#5c339a',
    950: '#000000',
  },
}
SCSS
$custom: #5c339a;
$custom-light: #8f6db8;
$custom-dark: #000000;
JSON
{
  "hex": "#5c339a",
  "rgb": {
    "r": 92,
    "g": 51,
    "b": 154
  },
  "hsl": {
    "h": 263.883,
    "s": 50.244,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42949,
    "c": 0.15973,
    "h": 297.5
  },
  "luminance": 0.06976
}

Semantic roles & 50–950 ramp

primary
#5C339A
secondary
#9CBA6F
accent
#DA4EA2
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5C339A

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

Preview Lab → · Contrast checker → · Palette generator →

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