#5C339F#5C339F

#5C339F is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.3% C 0.166 H 296.2°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#5C339F
RGBrgb(92, 51, 159)
HSLhsl(263, 51%, 41%)
HSVhsv(263, 68%, 62%)
CMYKcmyk(42.1%, 67.9%, 0%, 37.6%)
CIE-LABlab(32.14, 42.32, -52.09)
CIE-LCHlch(32.14, 67.12, 309.09°)
OKLaboklab(43.35% 0.0732 -0.1487)
OKLCHoklch(43.35% 0.166 296.2)
XYZxyz(11.8538, 7.1459, 33.5489)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C339F #769F33
analogous
#33409F #5C339F #92339F
triadic
#5C339F #9F5C33 #339F5C
tetradic
#5C339F #9F3340 #769F33 #339F92
square
#5C339F #9F3340 #769F33 #339F92
split-complementary
#5C339F #9F9233 #409F33
monochromatic
#261542 #412471 #5C339F #794AC5 #9B79D4

Accessibility & contrast

On white

8.64
#5C339F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5C339F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C339F
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C339F#FFFFFF#000000##FFFFFF
##5C339F1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA2
Deuteranopia (green-blind)
#004A9D
Tritanopia (blue-blind)
#4B4D64
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5c339f;
/* rgb */ color: rgb(92, 51, 159);
/* oklch */ color: oklch(43.3% 0.166 296.2);
Tailwind
colors: {
  custom: {
    50: '#906ebc',
    500: '#5c339f',
    950: '#000000',
  },
}
SCSS
$custom: #5c339f;
$custom-light: #906ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#5c339f",
  "rgb": {
    "r": 92,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 262.778,
    "s": 51.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43346,
    "c": 0.16576,
    "h": 296.2
  },
  "luminance": 0.07146
}

Semantic roles & 50–950 ramp

primary
#5C339F
secondary
#A0BC71
accent
#DB4DA5
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5C339F

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

Preview Lab → · Contrast checker → · Palette generator →

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