#5C2796#5C2796

#5C2796 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.0% C 0.170 H 300.8°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#5C2796
RGBrgb(92, 39, 150)
HSLhsl(269, 59%, 37%)
HSVhsv(269, 74%, 59%)
CMYKcmyk(38.7%, 74%, 0%, 41.2%)
CIE-LABlab(29.23, 46.04, -51.33)
CIE-LCHlch(29.23, 68.95, 311.89°)
OKLaboklab(41.05% 0.0873 -0.1465)
OKLCHoklch(41.05% 0.17 300.8)
XYZxyz(10.6428, 5.9283, 29.4318)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2796 #619627
analogous
#272996 #5C2796 #942796
triadic
#5C2796 #965C27 #27965C
tetradic
#5C2796 #962729 #619627 #279694
square
#5C2796 #962729 #619627 #279694
split-complementary
#5C2796 #969427 #299627
monochromatic
#200E35 #3E1A65 #5C2796 #7A34C7 #9961D6

Accessibility & contrast

On white

9.61
#5C2796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C2796
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2796#FFFFFF#000000##FFFFFF
##5C27961.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004499
Deuteranopia (green-blind)
#004494
Tritanopia (blue-blind)
#4F435C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5c2796;
/* rgb */ color: rgb(92, 39, 150);
/* oklch */ color: oklch(41.0% 0.170 300.8);
Tailwind
colors: {
  custom: {
    50: '#9066b6',
    500: '#5c2796',
    950: '#000000',
  },
}
SCSS
$custom: #5c2796;
$custom-light: #9066b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2796",
  "rgb": {
    "r": 92,
    "g": 39,
    "b": 150
  },
  "hsl": {
    "h": 268.649,
    "s": 58.73,
    "l": 37.059
  },
  "oklch": {
    "l": 0.4105,
    "c": 0.17048,
    "h": 300.8
  },
  "luminance": 0.05928
}

Semantic roles & 50–950 ramp

primary
#5C2796
secondary
#8FBC5D
accent
#E24697
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C2796

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

Preview Lab → · Contrast checker → · Palette generator →

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