#5C2797#5C2797

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

Color values

HEX#5C2797
RGBrgb(92, 39, 151)
HSLhsl(268, 59%, 37%)
HSVhsv(268, 74%, 59%)
CMYKcmyk(39.1%, 74.2%, 0%, 40.8%)
CIE-LABlab(29.31, 46.29, -51.81)
CIE-LCHlch(29.31, 69.48, 311.78°)
OKLaboklab(41.13% 0.0871 -0.1479)
OKLCHoklch(41.13% 0.172 300.5)
XYZxyz(10.7237, 5.9606, 29.8577)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2797 #629727
analogous
#272A97 #5C2797 #942797
triadic
#5C2797 #975C27 #27975C
tetradic
#5C2797 #97272A #629727 #279794
square
#5C2797 #97272A #629727 #279794
split-complementary
#5C2797 #979427 #2A9727
monochromatic
#210E36 #3E1A66 #5C2797 #7A34C8 #9962D6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C2797#FFFFFF#000000##FFFFFF
##5C27971.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)
#00459A
Deuteranopia (green-blind)
#004495
Tritanopia (blue-blind)
#4F435D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5c2797;
/* rgb */ color: rgb(92, 39, 151);
/* oklch */ color: oklch(41.1% 0.172 300.5);
Tailwind
colors: {
  custom: {
    50: '#9066b6',
    500: '#5c2797',
    950: '#000000',
  },
}
SCSS
$custom: #5c2797;
$custom-light: #9066b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2797",
  "rgb": {
    "r": 92,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 268.393,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41134,
    "c": 0.17158,
    "h": 300.5
  },
  "luminance": 0.05961
}

Semantic roles & 50–950 ramp

primary
#5C2797
secondary
#8FBC5E
accent
#E24698
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C2797

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

Preview Lab → · Contrast checker → · Palette generator →

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