#5C2597#5C2597

#5C2597 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.174 H 300.8°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#5C2597
RGBrgb(92, 37, 151)
HSLhsl(269, 61%, 37%)
HSVhsv(269, 75%, 59%)
CMYKcmyk(39.1%, 75.5%, 0%, 40.8%)
CIE-LABlab(28.99, 47.22, -52.34)
CIE-LCHlch(28.99, 70.49, 312.05°)
OKLaboklab(40.9% 0.089 -0.1494)
OKLCHoklch(40.9% 0.174 300.8)
XYZxyz(10.6597, 5.8327, 29.8364)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2597 #609725
analogous
#252797 #5C2597 #952597
triadic
#5C2597 #975C25 #25975C
tetradic
#5C2597 #972527 #609725 #259795
square
#5C2597 #972527 #609725 #259795
split-complementary
#5C2597 #979525 #279725
monochromatic
#200D35 #3E1966 #5C2597 #7A31C8 #995FD8

Accessibility & contrast

On white

9.69
#5C2597 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5C2597 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2597
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2597#FFFFFF#000000##FFFFFF
##5C25971.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c2597;
/* rgb */ color: rgb(92, 37, 151);
/* oklch */ color: oklch(40.9% 0.174 300.8);
Tailwind
colors: {
  custom: {
    50: '#9065b6',
    500: '#5c2597',
    950: '#000000',
  },
}
SCSS
$custom: #5c2597;
$custom-light: #9065b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2597",
  "rgb": {
    "r": 92,
    "g": 37,
    "b": 151
  },
  "hsl": {
    "h": 268.947,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40903,
    "c": 0.1739,
    "h": 300.8
  },
  "luminance": 0.05833
}

Semantic roles & 50–950 ramp

primary
#5C2597
secondary
#8EBD5B
accent
#E44497
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C2597

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

Preview Lab → · Contrast checker → · Palette generator →

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