#5C1982#5C1982

#5C1982 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.165 H 309.4°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#5C1982
RGBrgb(92, 25, 130)
HSLhsl(278, 68%, 30%)
HSVhsv(278, 81%, 51%)
CMYKcmyk(29.2%, 80.8%, 0%, 49%)
CIE-LABlab(25.51, 47.18, -44.96)
CIE-LCHlch(25.51, 65.17, 316.38°)
OKLaboklab(37.92% 0.105 -0.1276)
OKLCHoklch(37.92% 0.165 309.4)
XYZxyz(8.7897, 4.5825, 21.5362)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1982 #3F8219
analogous
#281982 #5C1982 #821973
triadic
#5C1982 #825C19 #19825C
tetradic
#5C1982 #822819 #3F8219 #197382
square
#5C1982 #822819 #3F8219 #197382
split-complementary
#5C1982 #738219 #198228
monochromatic
#13051B #380F4F #5C1982 #8023B5 #A03CD9

Accessibility & contrast

On white

10.96
#5C1982 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C1982
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1982#FFFFFF#000000##FFFFFF
##5C19821.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A85
Deuteranopia (green-blind)
#003D80
Tritanopia (blue-blind)
#56334D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5c1982;
/* rgb */ color: rgb(92, 25, 130);
/* oklch */ color: oklch(37.9% 0.165 309.4);
Tailwind
colors: {
  custom: {
    50: '#8f5ea7',
    500: '#5c1982',
    950: '#000000',
  },
}
SCSS
$custom: #5c1982;
$custom-light: #8f5ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1982",
  "rgb": {
    "r": 92,
    "g": 25,
    "b": 130
  },
  "hsl": {
    "h": 278.286,
    "s": 67.742,
    "l": 30.392
  },
  "oklch": {
    "l": 0.37919,
    "c": 0.16525,
    "h": 309.4
  },
  "luminance": 0.04582
}

Semantic roles & 50–950 ramp

primary
#5C1982
secondary
#6BB641
accent
#EB3D7C
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5C1982

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

Preview Lab → · Contrast checker → · Palette generator →

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