#5C2397#5C2397

#5C2397 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.176 H 301.0°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#5C2397
RGBrgb(92, 35, 151)
HSLhsl(269, 62%, 36%)
HSVhsv(269, 77%, 59%)
CMYKcmyk(39.1%, 76.8%, 0%, 40.8%)
CIE-LABlab(28.67, 48.11, -52.85)
CIE-LCHlch(28.67, 71.47, 312.31°)
OKLaboklab(40.68% 0.0908 -0.1509)
OKLCHoklch(40.68% 0.176 301)
XYZxyz(10.5992, 5.7117, 29.8162)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2397 #5E9723
analogous
#232497 #5C2397 #962397
triadic
#5C2397 #975C23 #23975C
tetradic
#5C2397 #972324 #5E9723 #239796
square
#5C2397 #972324 #5E9723 #239796
split-complementary
#5C2397 #979623 #249723
monochromatic
#1F0C34 #3E1765 #5C2397 #7A2FC9 #995BD9

Accessibility & contrast

On white

9.80
#5C2397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5C2397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2397
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2397#FFFFFF#000000##FFFFFF
##5C23971.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#004395
Tritanopia (blue-blind)
#4F415C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5c2397;
/* rgb */ color: rgb(92, 35, 151);
/* oklch */ color: oklch(40.7% 0.176 301.0);
Tailwind
colors: {
  custom: {
    50: '#9064b6',
    500: '#5c2397',
    950: '#000000',
  },
}
SCSS
$custom: #5c2397;
$custom-light: #9064b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2397",
  "rgb": {
    "r": 92,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 269.483,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40682,
    "c": 0.17613,
    "h": 301
  },
  "luminance": 0.05712
}

Semantic roles & 50–950 ramp

primary
#5C2397
secondary
#8CBE58
accent
#E54295
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C2397

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

Preview Lab → · Contrast checker → · Palette generator →

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