#4C1C8C#4C1C8C

#4C1C8C is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.169 H 296.4°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#4C1C8C
RGBrgb(76, 28, 140)
HSLhsl(266, 67%, 33%)
HSVhsv(266, 80%, 55%)
CMYKcmyk(45.7%, 80%, 0%, 45.1%)
CIE-LABlab(24.51, 45.66, -52.94)
CIE-LCHlch(24.51, 69.91, 310.77°)
OKLaboklab(37% 0.0754 -0.1517)
OKLCHoklch(37% 0.169 296.4)
XYZxyz(8.1281, 4.2603, 25.1999)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1C8C #5C8C1C
analogous
#1C248C #4C1C8C #841C8C
triadic
#4C1C8C #8C4C1C #1C8C4C
tetradic
#4C1C8C #8C1C24 #5C8C1C #1C8C84
square
#4C1C8C #8C1C24 #5C8C1C #1C8C84
split-complementary
#4C1C8C #8C841C #248C1C
monochromatic
#150826 #301259 #4C1C8C #6826BF #8748DA

Accessibility & contrast

On white

11.34
#4C1C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4C1C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1C8C
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1C8C#FFFFFF#000000##FFFFFF
##4C1C8C1.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#00398A
Tritanopia (blue-blind)
#3A3B54
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c1c8c;
/* rgb */ color: rgb(76, 28, 140);
/* oklch */ color: oklch(37.0% 0.169 296.4);
Tailwind
colors: {
  custom: {
    50: '#855eaf',
    500: '#4c1c8c',
    950: '#000000',
  },
}
SCSS
$custom: #4c1c8c;
$custom-light: #855eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1c8c",
  "rgb": {
    "r": 76,
    "g": 28,
    "b": 140
  },
  "hsl": {
    "h": 265.714,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37005,
    "c": 0.1694,
    "h": 296.4
  },
  "luminance": 0.0426
}

Semantic roles & 50–950 ramp

primary
#4C1C8C
secondary
#8ABC48
accent
#EA3EA0
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4C1C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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