#5C1983#5C1983

#5C1983 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.166 H 309.0°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#5C1983
RGBrgb(92, 25, 131)
HSLhsl(278, 68%, 31%)
HSVhsv(278, 81%, 51%)
CMYKcmyk(29.8%, 80.9%, 0%, 48.6%)
CIE-LABlab(25.59, 47.41, -45.46)
CIE-LCHlch(25.59, 65.68, 316.21°)
OKLaboklab(38% 0.1047 -0.1291)
OKLCHoklch(38% 0.166 309)
XYZxyz(8.8572, 4.6094, 21.8914)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1983 #408319
analogous
#271983 #5C1983 #831975
triadic
#5C1983 #835C19 #19835C
tetradic
#5C1983 #832719 #408319 #197583
square
#5C1983 #832719 #408319 #197583
split-complementary
#5C1983 #758319 #198327
monochromatic
#14051C #380F50 #5C1983 #8023B6 #A03DDA

Accessibility & contrast

On white

10.93
#5C1983 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5C1983 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1983
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1983#FFFFFF#000000##FFFFFF
##5C19831.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A86
Deuteranopia (green-blind)
#003D81
Tritanopia (blue-blind)
#56344E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5c1983;
/* rgb */ color: rgb(92, 25, 131);
/* oklch */ color: oklch(38.0% 0.166 309.0);
Tailwind
colors: {
  custom: {
    50: '#8f5fa8',
    500: '#5c1983',
    950: '#000000',
  },
}
SCSS
$custom: #5c1983;
$custom-light: #8f5fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1983",
  "rgb": {
    "r": 92,
    "g": 25,
    "b": 131
  },
  "hsl": {
    "h": 277.925,
    "s": 67.949,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38002,
    "c": 0.16622,
    "h": 309
  },
  "luminance": 0.04609
}

Semantic roles & 50–950 ramp

primary
#5C1983
secondary
#6CB741
accent
#EB3D7D
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C1983

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

Preview Lab → · Contrast checker → · Palette generator →

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