#4C1E8E#4C1E8E

#4C1E8E is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.170 H 295.6°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#4C1E8E
RGBrgb(76, 30, 142)
HSLhsl(265, 65%, 34%)
HSVhsv(265, 79%, 56%)
CMYKcmyk(46.5%, 78.9%, 0%, 44.3%)
CIE-LABlab(25.01, 45.30, -53.38)
CIE-LCHlch(25.01, 70.01, 310.32°)
OKLaboklab(37.41% 0.0732 -0.153)
OKLCHoklch(37.41% 0.17 295.6)
XYZxyz(8.3259, 4.4178, 26.0000)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1E8E #608E1E
analogous
#1E288E #4C1E8E #841E8E
triadic
#4C1E8E #8E4C1E #1E8E4C
tetradic
#4C1E8E #8E1E28 #608E1E #1E8E84
square
#4C1E8E #8E1E28 #608E1E #1E8E84
split-complementary
#4C1E8E #8E841E #288E1E
monochromatic
#160929 #31135B #4C1E8E #6729C1 #874DD9

Accessibility & contrast

On white

11.15
#4C1E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1E8E
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1E8E#FFFFFF#000000##FFFFFF
##4C1E8E1.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#003A8C
Tritanopia (blue-blind)
#393D55
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4c1e8e;
/* rgb */ color: rgb(76, 30, 142);
/* oklch */ color: oklch(37.4% 0.170 295.6);
Tailwind
colors: {
  custom: {
    50: '#8560b0',
    500: '#4c1e8e',
    950: '#000000',
  },
}
SCSS
$custom: #4c1e8e;
$custom-light: #8560b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1e8e",
  "rgb": {
    "r": 76,
    "g": 30,
    "b": 142
  },
  "hsl": {
    "h": 264.643,
    "s": 65.116,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37406,
    "c": 0.16957,
    "h": 295.6
  },
  "luminance": 0.04418
}

Semantic roles & 50–950 ramp

primary
#4C1E8E
secondary
#8EBC4C
accent
#E840A3
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4C1E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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