#5C2699#5C2699

#5C2699 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.2% C 0.175 H 300.0°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#5C2699
RGBrgb(92, 38, 153)
HSLhsl(268, 60%, 37%)
HSVhsv(268, 75%, 60%)
CMYKcmyk(39.9%, 75.2%, 0%, 40%)
CIE-LABlab(29.31, 47.27, -53.03)
CIE-LCHlch(29.31, 71.04, 311.71°)
OKLaboklab(41.19% 0.0876 -0.1514)
OKLCHoklch(41.19% 0.175 300)
XYZxyz(10.8551, 5.9613, 30.7096)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2699 #639926
analogous
#262A99 #5C2699 #952699
triadic
#5C2699 #995C26 #26995C
tetradic
#5C2699 #99262A #639926 #269995
square
#5C2699 #99262A #639926 #269995
split-complementary
#5C2699 #999526 #2A9926
monochromatic
#210E37 #3F1A68 #5C2699 #7932CA #9962D8

Accessibility & contrast

On white

9.58
#5C2699 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5C2699 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2699
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2699#FFFFFF#000000##FFFFFF
##5C26991.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459C
Deuteranopia (green-blind)
#004497
Tritanopia (blue-blind)
#4E435E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5c2699;
/* rgb */ color: rgb(92, 38, 153);
/* oklch */ color: oklch(41.2% 0.175 300.0);
Tailwind
colors: {
  custom: {
    50: '#9066b8',
    500: '#5c2699',
    950: '#000000',
  },
}
SCSS
$custom: #5c2699;
$custom-light: #9066b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2699",
  "rgb": {
    "r": 92,
    "g": 38,
    "b": 153
  },
  "hsl": {
    "h": 268.174,
    "s": 60.209,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41186,
    "c": 0.17494,
    "h": 300
  },
  "luminance": 0.05961
}

Semantic roles & 50–950 ramp

primary
#5C2699
secondary
#90BD5E
accent
#E34499
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C2699

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

Preview Lab → · Contrast checker → · Palette generator →

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