#5C2799#5C2799

#5C2799 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.174 H 299.9°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#5C2799
RGBrgb(92, 39, 153)
HSLhsl(268, 59%, 38%)
HSVhsv(268, 75%, 60%)
CMYKcmyk(39.9%, 74.5%, 0%, 40%)
CIE-LABlab(29.48, 46.80, -52.76)
CIE-LCHlch(29.48, 70.53, 311.57°)
OKLaboklab(41.3% 0.0866 -0.1507)
OKLCHoklch(41.3% 0.174 299.9)
XYZxyz(10.8875, 6.0261, 30.7204)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2799 #649927
analogous
#272B99 #5C2799 #952799
triadic
#5C2799 #995C27 #27995C
tetradic
#5C2799 #99272B #649927 #279995
square
#5C2799 #99272B #649927 #279995
split-complementary
#5C2799 #999527 #2B9927
monochromatic
#210E37 #3F1B68 #5C2799 #7933CA #9963D7

Accessibility & contrast

On white

9.52
#5C2799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5C2799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2799
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2799#FFFFFF#000000##FFFFFF
##5C27991.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c2799;
/* rgb */ color: rgb(92, 39, 153);
/* oklch */ color: oklch(41.3% 0.174 299.9);
Tailwind
colors: {
  custom: {
    50: '#9066b8',
    500: '#5c2799',
    950: '#000000',
  },
}
SCSS
$custom: #5c2799;
$custom-light: #9066b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2799",
  "rgb": {
    "r": 92,
    "g": 39,
    "b": 153
  },
  "hsl": {
    "h": 267.895,
    "s": 59.375,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41302,
    "c": 0.17379,
    "h": 299.9
  },
  "luminance": 0.06026
}

Semantic roles & 50–950 ramp

primary
#5C2799
secondary
#91BD5F
accent
#E34599
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C2799

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

Preview Lab → · Contrast checker → · Palette generator →

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