#5C1985#5C1985

#5C1985 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.168 H 308.3°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#5C1985
RGBrgb(92, 25, 133)
HSLhsl(277, 68%, 31%)
HSVhsv(277, 81%, 52%)
CMYKcmyk(30.8%, 81.2%, 0%, 47.8%)
CIE-LABlab(25.76, 47.86, -46.45)
CIE-LCHlch(25.76, 66.69, 315.86°)
OKLaboklab(38.17% 0.1042 -0.132)
OKLCHoklch(38.17% 0.168 308.3)
XYZxyz(8.9940, 4.6642, 22.6122)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1985 #428519
analogous
#261985 #5C1985 #851978
triadic
#5C1985 #855C19 #19855C
tetradic
#5C1985 #852619 #428519 #197885
square
#5C1985 #852619 #428519 #197885
split-complementary
#5C1985 #788519 #198526
monochromatic
#15061E #380F51 #5C1985 #8023B9 #9F3EDB

Accessibility & contrast

On white

10.87
#5C1985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5C1985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1985
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1985#FFFFFF#000000##FFFFFF
##5C19851.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B88
Deuteranopia (green-blind)
#003E83
Tritanopia (blue-blind)
#55354F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5c1985;
/* rgb */ color: rgb(92, 25, 133);
/* oklch */ color: oklch(38.2% 0.168 308.3);
Tailwind
colors: {
  custom: {
    50: '#8f5fa9',
    500: '#5c1985',
    950: '#000000',
  },
}
SCSS
$custom: #5c1985;
$custom-light: #8f5fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1985",
  "rgb": {
    "r": 92,
    "g": 25,
    "b": 133
  },
  "hsl": {
    "h": 277.222,
    "s": 68.354,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38168,
    "c": 0.16819,
    "h": 308.3
  },
  "luminance": 0.04664
}

Semantic roles & 50–950 ramp

primary
#5C1985
secondary
#6FB941
accent
#EB3D7F
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C1985

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

Preview Lab → · Contrast checker → · Palette generator →

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