#4C1C8B#4C1C8B

#4C1C8B is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.168 H 296.7°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#4C1C8B
RGBrgb(76, 28, 139)
HSLhsl(266, 66%, 33%)
HSVhsv(266, 80%, 55%)
CMYKcmyk(45.3%, 79.9%, 0%, 45.5%)
CIE-LABlab(24.42, 45.39, -52.47)
CIE-LCHlch(24.42, 69.38, 310.86°)
OKLaboklab(36.91% 0.0757 -0.1503)
OKLCHoklch(36.91% 0.168 296.7)
XYZxyz(8.0547, 4.2309, 24.8134)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1C8B #5B8B1C
analogous
#1C238B #4C1C8B #831C8B
triadic
#4C1C8B #8B4C1C #1C8B4C
tetradic
#4C1C8B #8B1C23 #5B8B1C #1C8B83
square
#4C1C8B #8B1C23 #5B8B1C #1C8B83
split-complementary
#4C1C8B #8B831C #238B1C
monochromatic
#140725 #301258 #4C1C8B #6826BE #8747DA

Accessibility & contrast

On white

11.37
#4C1C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1C8B
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1C8B#FFFFFF#000000##FFFFFF
##4C1C8B1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003989
Tritanopia (blue-blind)
#3B3B53
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c1c8b;
/* rgb */ color: rgb(76, 28, 139);
/* oklch */ color: oklch(36.9% 0.168 296.7);
Tailwind
colors: {
  custom: {
    50: '#855eae',
    500: '#4c1c8b',
    950: '#000000',
  },
}
SCSS
$custom: #4c1c8b;
$custom-light: #855eae;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1c8b",
  "rgb": {
    "r": 76,
    "g": 28,
    "b": 139
  },
  "hsl": {
    "h": 265.946,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.36911,
    "c": 0.16831,
    "h": 296.7
  },
  "luminance": 0.04231
}

Semantic roles & 50–950 ramp

primary
#4C1C8B
secondary
#89BC47
accent
#E93E9F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4C1C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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