#4C1C84#4C1C84

#4C1C84 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.161 H 299.0°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#4C1C84
RGBrgb(76, 28, 132)
HSLhsl(268, 65%, 31%)
HSVhsv(268, 79%, 52%)
CMYKcmyk(42.4%, 78.8%, 0%, 48.2%)
CIE-LABlab(23.78, 43.56, -49.14)
CIE-LCHlch(23.78, 65.67, 311.56°)
OKLaboklab(36.27% 0.0778 -0.1405)
OKLCHoklch(36.27% 0.161 299)
XYZxyz(7.5595, 4.0328, 22.2055)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1C84 #54841C
analogous
#1C2084 #4C1C84 #801C84
triadic
#4C1C84 #844C1C #1C844C
tetradic
#4C1C84 #841C20 #54841C #1C8480
square
#4C1C84 #841C20 #54841C #1C8480
split-complementary
#4C1C84 #84801C #20841C
monochromatic
#12071F #2F1152 #4C1C84 #6927B6 #8843D7

Accessibility & contrast

On white

11.62
#4C1C84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4C1C84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1C84
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1C84#FFFFFF#000000##FFFFFF
##4C1C841.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003987
Deuteranopia (green-blind)
#003882
Tritanopia (blue-blind)
#3E384F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4c1c84;
/* rgb */ color: rgb(76, 28, 132);
/* oklch */ color: oklch(36.3% 0.161 299.0);
Tailwind
colors: {
  custom: {
    50: '#845ea9',
    500: '#4c1c84',
    950: '#000000',
  },
}
SCSS
$custom: #4c1c84;
$custom-light: #845ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1c84",
  "rgb": {
    "r": 76,
    "g": 28,
    "b": 132
  },
  "hsl": {
    "h": 267.692,
    "s": 65,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36266,
    "c": 0.1606,
    "h": 299
  },
  "luminance": 0.04033
}

Semantic roles & 50–950 ramp

primary
#4C1C84
secondary
#82B745
accent
#E8409A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4C1C84

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

Preview Lab → · Contrast checker → · Palette generator →

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