#5C2697#5C2697

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

Color values

HEX#5C2697
RGBrgb(92, 38, 151)
HSLhsl(269, 60%, 37%)
HSVhsv(269, 75%, 59%)
CMYKcmyk(39.1%, 74.8%, 0%, 40.8%)
CIE-LABlab(29.15, 46.76, -52.08)
CIE-LCHlch(29.15, 69.99, 311.92°)
OKLaboklab(41.02% 0.088 -0.1486)
OKLCHoklch(41.02% 0.173 300.6)
XYZxyz(10.6913, 5.8958, 29.8469)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2697 #619726
analogous
#262897 #5C2697 #952697
triadic
#5C2697 #975C26 #26975C
tetradic
#5C2697 #972628 #619726 #269795
square
#5C2697 #972628 #619726 #269795
split-complementary
#5C2697 #979526 #289726
monochromatic
#200D35 #3E1A66 #5C2697 #7A32C8 #9960D7

Accessibility & contrast

On white

9.64
#5C2697 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5C2697 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2697
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2697#FFFFFF#000000##FFFFFF
##5C26971.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#004495
Tritanopia (blue-blind)
#4F435C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5c2697;
/* rgb */ color: rgb(92, 38, 151);
/* oklch */ color: oklch(41.0% 0.173 300.6);
Tailwind
colors: {
  custom: {
    50: '#9066b6',
    500: '#5c2697',
    950: '#000000',
  },
}
SCSS
$custom: #5c2697;
$custom-light: #9066b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2697",
  "rgb": {
    "r": 92,
    "g": 38,
    "b": 151
  },
  "hsl": {
    "h": 268.673,
    "s": 59.788,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41017,
    "c": 0.17276,
    "h": 300.6
  },
  "luminance": 0.05896
}

Semantic roles & 50–950 ramp

primary
#5C2697
secondary
#8FBC5C
accent
#E34597
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C2697

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

Preview Lab → · Contrast checker → · Palette generator →

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