#4C1C8A#4C1C8A

#4C1C8A is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.167 H 297.0°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#4C1C8A
RGBrgb(76, 28, 138)
HSLhsl(266, 66%, 33%)
HSVhsv(266, 80%, 54%)
CMYKcmyk(44.9%, 79.7%, 0%, 45.9%)
CIE-LABlab(24.33, 45.13, -52.00)
CIE-LCHlch(24.33, 68.85, 310.96°)
OKLaboklab(36.82% 0.076 -0.1489)
OKLCHoklch(36.82% 0.167 297)
XYZxyz(7.9820, 4.2018, 24.4303)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1C8A #5A8A1C
analogous
#1C238A #4C1C8A #831C8A
triadic
#4C1C8A #8A4C1C #1C8A4C
tetradic
#4C1C8A #8A1C23 #5A8A1C #1C8A83
square
#4C1C8A #8A1C23 #5A8A1C #1C8A83
split-complementary
#4C1C8A #8A831C #238A1C
monochromatic
#140724 #301257 #4C1C8A #6826BD #8747DA

Accessibility & contrast

On white

11.41
#4C1C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4C1C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1C8A
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1C8A#FFFFFF#000000##FFFFFF
##4C1C8A1.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003888
Tritanopia (blue-blind)
#3B3A53
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c1c8a;
/* rgb */ color: rgb(76, 28, 138);
/* oklch */ color: oklch(36.8% 0.167 297.0);
Tailwind
colors: {
  custom: {
    50: '#855ead',
    500: '#4c1c8a',
    950: '#000000',
  },
}
SCSS
$custom: #4c1c8a;
$custom-light: #855ead;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1c8a",
  "rgb": {
    "r": 76,
    "g": 28,
    "b": 138
  },
  "hsl": {
    "h": 266.182,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.36818,
    "c": 0.1672,
    "h": 297
  },
  "luminance": 0.04202
}

Semantic roles & 50–950 ramp

primary
#4C1C8A
secondary
#88BB46
accent
#E93F9F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4C1C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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