#5C2098#5C2098

#5C2098 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.5% C 0.180 H 301.1°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#5C2098
RGBrgb(92, 32, 152)
HSLhsl(270, 65%, 36%)
HSVhsv(270, 79%, 60%)
CMYKcmyk(39.5%, 78.9%, 0%, 40.4%)
CIE-LABlab(28.31, 49.63, -54.05)
CIE-LCHlch(28.31, 73.38, 312.56°)
OKLaboklab(40.46% 0.0932 -0.1544)
OKLCHoklch(40.46% 0.18 301.1)
XYZxyz(10.5962, 5.5753, 30.2176)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2098 #5C9820
analogous
#202098 #5C2098 #982098
triadic
#5C2098 #985C20 #20985C
tetradic
#5C2098 #982020 #5C9820 #209898
square
#5C2098 #982020 #5C9820 #209898
split-complementary
#5C2098 #989820 #209820
monochromatic
#1F0B33 #3D1565 #5C2098 #7B2BCB #9957DC

Accessibility & contrast

On white

9.93
#5C2098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5C2098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2098
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2098#FFFFFF#000000##FFFFFF
##5C20981.009.932.129.93
#FFFFFF9.931.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#004296
Tritanopia (blue-blind)
#4E405C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5c2098;
/* rgb */ color: rgb(92, 32, 152);
/* oklch */ color: oklch(40.5% 0.180 301.1);
Tailwind
colors: {
  custom: {
    50: '#9063b7',
    500: '#5c2098',
    950: '#000000',
  },
}
SCSS
$custom: #5c2098;
$custom-light: #9063b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2098",
  "rgb": {
    "r": 92,
    "g": 32,
    "b": 152
  },
  "hsl": {
    "h": 270,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40458,
    "c": 0.18035,
    "h": 301.1
  },
  "luminance": 0.05575
}

Semantic roles & 50–950 ramp

primary
#5C2098
secondary
#8ABF54
accent
#E84094
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C2098

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

Preview Lab → · Contrast checker → · Palette generator →

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