#5C2097#5C2097

#5C2097 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.4% C 0.179 H 301.4°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#5C2097
RGBrgb(92, 32, 151)
HSLhsl(270, 65%, 36%)
HSVhsv(270, 79%, 59%)
CMYKcmyk(39.1%, 78.8%, 0%, 40.8%)
CIE-LABlab(28.23, 49.39, -53.58)
CIE-LCHlch(28.23, 72.87, 312.67°)
OKLaboklab(40.37% 0.0935 -0.153)
OKLCHoklch(40.37% 0.179 301.4)
XYZxyz(10.5147, 5.5426, 29.7880)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2097 #5B9720
analogous
#202097 #5C2097 #972096
triadic
#5C2097 #975C20 #20975C
tetradic
#5C2097 #972020 #5B9720 #209697
square
#5C2097 #972020 #5B9720 #209697
split-complementary
#5C2097 #969720 #209720
monochromatic
#1E0B32 #3D1564 #5C2097 #7B2BC9 #9956DB

Accessibility & contrast

On white

9.96
#5C2097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5C2097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2097
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2097#FFFFFF#000000##FFFFFF
##5C20971.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#4F405B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5c2097;
/* rgb */ color: rgb(92, 32, 151);
/* oklch */ color: oklch(40.4% 0.179 301.4);
Tailwind
colors: {
  custom: {
    50: '#9063b7',
    500: '#5c2097',
    950: '#000000',
  },
}
SCSS
$custom: #5c2097;
$custom-light: #9063b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2097",
  "rgb": {
    "r": 92,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 270.252,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.4037,
    "c": 0.17931,
    "h": 301.4
  },
  "luminance": 0.05543
}

Semantic roles & 50–950 ramp

primary
#5C2097
secondary
#89BF54
accent
#E84093
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C2097

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

Preview Lab → · Contrast checker → · Palette generator →

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