#4C1E8D#4C1E8D

#4C1E8D is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.168 H 295.9°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#4C1E8D
RGBrgb(76, 30, 141)
HSLhsl(265, 65%, 34%)
HSVhsv(265, 79%, 55%)
CMYKcmyk(46.1%, 78.7%, 0%, 44.7%)
CIE-LABlab(24.91, 45.04, -52.91)
CIE-LCHlch(24.91, 69.48, 310.41°)
OKLaboklab(37.31% 0.0735 -0.1516)
OKLCHoklch(37.31% 0.168 295.9)
XYZxyz(8.2512, 4.3879, 25.6064)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1E8D #5F8D1E
analogous
#1E278D #4C1E8D #831E8D
triadic
#4C1E8D #8D4C1E #1E8D4C
tetradic
#4C1E8D #8D1E27 #5F8D1E #1E8D83
square
#4C1E8D #8D1E27 #5F8D1E #1E8D83
split-complementary
#4C1E8D #8D831E #278D1E
monochromatic
#160928 #31135B #4C1E8D #6729BF #874CD9

Accessibility & contrast

On white

11.18
#4C1E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4C1E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1E8D
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1E8D#FFFFFF#000000##FFFFFF
##4C1E8D1.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#00398B
Tritanopia (blue-blind)
#3A3C55
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4c1e8d;
/* rgb */ color: rgb(76, 30, 141);
/* oklch */ color: oklch(37.3% 0.168 295.9);
Tailwind
colors: {
  custom: {
    50: '#855faf',
    500: '#4c1e8d',
    950: '#000000',
  },
}
SCSS
$custom: #4c1e8d;
$custom-light: #855faf;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1e8d",
  "rgb": {
    "r": 76,
    "g": 30,
    "b": 141
  },
  "hsl": {
    "h": 264.865,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37313,
    "c": 0.16846,
    "h": 295.9
  },
  "luminance": 0.04388
}

Semantic roles & 50–950 ramp

primary
#4C1E8D
secondary
#8DBC4B
accent
#E840A2
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4C1E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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