#5C1783#5C1783

#5C1783 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.8% C 0.168 H 309.2°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#5C1783
RGBrgb(92, 23, 131)
HSLhsl(278, 70%, 30%)
HSVhsv(278, 82%, 51%)
CMYKcmyk(29.8%, 82.4%, 0%, 48.6%)
CIE-LABlab(25.34, 48.13, -45.86)
CIE-LCHlch(25.34, 66.48, 316.38°)
OKLaboklab(37.83% 0.1064 -0.1303)
OKLCHoklch(37.83% 0.168 309.2)
XYZxyz(8.8159, 4.5270, 21.8777)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1783 #3E8317
analogous
#261783 #5C1783 #831774
triadic
#5C1783 #835C17 #17835C
tetradic
#5C1783 #832617 #3E8317 #177483
square
#5C1783 #832617 #3E8317 #177483
split-complementary
#5C1783 #748317 #178326
monochromatic
#13051B #370E4F #5C1783 #8120B7 #A138DC

Accessibility & contrast

On white

11.02
#5C1783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5C1783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1783
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1783#FFFFFF#000000##FFFFFF
##5C17831.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003986
Deuteranopia (green-blind)
#003D81
Tritanopia (blue-blind)
#56334E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5c1783;
/* rgb */ color: rgb(92, 23, 131);
/* oklch */ color: oklch(37.8% 0.168 309.2);
Tailwind
colors: {
  custom: {
    50: '#8f5ea8',
    500: '#5c1783',
    950: '#000000',
  },
}
SCSS
$custom: #5c1783;
$custom-light: #8f5ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1783",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 131
  },
  "hsl": {
    "h": 278.333,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.37827,
    "c": 0.1682,
    "h": 309.2
  },
  "luminance": 0.04527
}

Semantic roles & 50–950 ramp

primary
#5C1783
secondary
#6AB73F
accent
#ED3B7B
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C1783

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

Preview Lab → · Contrast checker → · Palette generator →

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