#5C1D98#5C1D98

#5C1D98 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.2% C 0.183 H 301.5°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#5C1D98
RGBrgb(92, 29, 152)
HSLhsl(271, 68%, 35%)
HSVhsv(271, 81%, 60%)
CMYKcmyk(39.5%, 80.9%, 0%, 40.4%)
CIE-LABlab(27.90, 50.83, -54.73)
CIE-LCHlch(27.90, 74.69, 312.88°)
OKLaboklab(40.17% 0.0957 -0.1564)
OKLCHoklch(40.17% 0.183 301.5)
XYZxyz(10.5191, 5.4210, 30.1918)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1D98 #59981D
analogous
#1F1D98 #5C1D98 #981D96
triadic
#5C1D98 #985C1D #1D985C
tetradic
#5C1D98 #981F1D #59981D #1D9698
square
#5C1D98 #981F1D #59981D #1D9698
split-complementary
#5C1D98 #96981D #1D981F
monochromatic
#1E0931 #3D1365 #5C1D98 #7B27CB #9952DE

Accessibility & contrast

On white

10.08
#5C1D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5C1D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1D98
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1D98#FFFFFF#000000##FFFFFF
##5C1D981.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#004196
Tritanopia (blue-blind)
#4F3F5B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5c1d98;
/* rgb */ color: rgb(92, 29, 152);
/* oklch */ color: oklch(40.2% 0.183 301.5);
Tailwind
colors: {
  custom: {
    50: '#9061b7',
    500: '#5c1d98',
    950: '#000000',
  },
}
SCSS
$custom: #5c1d98;
$custom-light: #9061b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1d98",
  "rgb": {
    "r": 92,
    "g": 29,
    "b": 152
  },
  "hsl": {
    "h": 270.732,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.4017,
    "c": 0.18331,
    "h": 301.5
  },
  "luminance": 0.05421
}

Semantic roles & 50–950 ramp

primary
#5C1D98
secondary
#87C150
accent
#EB3D92
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5C1D98

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

Preview Lab → · Contrast checker → · Palette generator →

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