#4C1984#4C1984

#4C1984 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.164 H 299.4°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#4C1984
RGBrgb(76, 25, 132)
HSLhsl(269, 68%, 31%)
HSVhsv(269, 81%, 52%)
CMYKcmyk(42.4%, 81.1%, 0%, 48.2%)
CIE-LABlab(23.33, 44.86, -49.87)
CIE-LCHlch(23.33, 67.08, 311.97°)
OKLaboklab(35.95% 0.0803 -0.1427)
OKLCHoklch(35.95% 0.164 299.4)
XYZxyz(7.4919, 3.8976, 22.1829)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1984 #518419
analogous
#191B84 #4C1984 #811984
triadic
#4C1984 #844C19 #19844C
tetradic
#4C1984 #84191B #518419 #198481
square
#4C1984 #84191B #518419 #198481
split-complementary
#4C1984 #848119 #1B8419
monochromatic
#11061D #2E0F51 #4C1984 #6A23B7 #883DDA

Accessibility & contrast

On white

11.80
#4C1984 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4C1984 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1984
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1984#FFFFFF#000000##FFFFFF
##4C19841.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003787
Deuteranopia (green-blind)
#003782
Tritanopia (blue-blind)
#3E364F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4c1984;
/* rgb */ color: rgb(76, 25, 132);
/* oklch */ color: oklch(36.0% 0.164 299.4);
Tailwind
colors: {
  custom: {
    50: '#845da9',
    500: '#4c1984',
    950: '#000000',
  },
}
SCSS
$custom: #4c1984;
$custom-light: #845da9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1984",
  "rgb": {
    "r": 76,
    "g": 25,
    "b": 132
  },
  "hsl": {
    "h": 268.598,
    "s": 68.153,
    "l": 30.784
  },
  "oklch": {
    "l": 0.35952,
    "c": 0.16372,
    "h": 299.4
  },
  "luminance": 0.03898
}

Semantic roles & 50–950 ramp

primary
#4C1984
secondary
#7FB841
accent
#EB3D98
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4C1984

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

Preview Lab → · Contrast checker → · Palette generator →

#4C1984 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva