#5C1283#5C1283

#5C1283 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.4% C 0.173 H 309.7°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#5C1283
RGBrgb(92, 18, 131)
HSLhsl(279, 76%, 29%)
HSVhsv(279, 86%, 51%)
CMYKcmyk(29.8%, 86.3%, 0%, 48.6%)
CIE-LABlab(24.79, 49.76, -46.77)
CIE-LCHlch(24.79, 68.28, 316.77°)
OKLaboklab(37.44% 0.1102 -0.1329)
OKLCHoklch(37.44% 0.173 309.7)
XYZxyz(8.7258, 4.3468, 21.8477)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1283 #398312
analogous
#241283 #5C1283 #831272
triadic
#5C1283 #835C12 #12835C
tetradic
#5C1283 #832412 #398312 #127283
square
#5C1283 #832412 #398312 #127283
split-complementary
#5C1283 #728312 #128324
monochromatic
#13041B #360B4D #5C1283 #8219B9 #A42DE2

Accessibility & contrast

On white

11.23
#5C1283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5C1283 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1283
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1283#FFFFFF#000000##FFFFFF
##5C12831.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003886
Deuteranopia (green-blind)
#003C81
Tritanopia (blue-blind)
#56314D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5c1283;
/* rgb */ color: rgb(92, 18, 131);
/* oklch */ color: oklch(37.4% 0.173 309.7);
Tailwind
colors: {
  custom: {
    50: '#8f5ca8',
    500: '#5c1283',
    950: '#000000',
  },
}
SCSS
$custom: #5c1283;
$custom-light: #8f5ca8;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1283",
  "rgb": {
    "r": 92,
    "g": 18,
    "b": 131
  },
  "hsl": {
    "h": 279.292,
    "s": 75.839,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3744,
    "c": 0.17261,
    "h": 309.7
  },
  "luminance": 0.04347
}

Semantic roles & 50–950 ramp

primary
#5C1283
secondary
#65B838
accent
#F23577
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0410
muted
#7E797F

Preview Lab

Preview with #5C1283

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

Preview Lab → · Contrast checker → · Palette generator →

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