#4C1E9E#4C1E9E

#4C1E9E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.9% C 0.187 H 291.3°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#4C1E9E
RGBrgb(76, 30, 158)
HSLhsl(262, 68%, 37%)
HSVhsv(262, 81%, 62%)
CMYKcmyk(51.9%, 81%, 0%, 38%)
CIE-LABlab(26.54, 49.59, -60.70)
CIE-LCHlch(26.54, 78.38, 309.25°)
OKLaboklab(38.94% 0.0681 -0.1744)
OKLCHoklch(38.94% 0.187 291.3)
XYZxyz(9.6146, 4.9333, 32.7867)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1E9E #709E1E
analogous
#1E309E #4C1E9E #8C1E9E
triadic
#4C1E9E #9E4C1E #1E9E4C
tetradic
#4C1E9E #9E1E30 #709E1E #1E9E8C
square
#4C1E9E #9E1E30 #709E1E #1E9E8C
split-complementary
#4C1E9E #9E8C1E #309E1E
monochromatic
#1B0A37 #33146B #4C1E9E #6528D1 #8857DF

Accessibility & contrast

On white

10.57
#4C1E9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4C1E9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1E9E
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1E9E#FFFFFF#000000##FFFFFF
##4C1E9E1.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A1
Deuteranopia (green-blind)
#003C9C
Tritanopia (blue-blind)
#2F435F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4c1e9e;
/* rgb */ color: rgb(76, 30, 158);
/* oklch */ color: oklch(38.9% 0.187 291.3);
Tailwind
colors: {
  custom: {
    50: '#8760bc',
    500: '#4c1e9e',
    950: '#000000',
  },
}
SCSS
$custom: #4c1e9e;
$custom-light: #8760bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1e9e",
  "rgb": {
    "r": 76,
    "g": 30,
    "b": 158
  },
  "hsl": {
    "h": 261.563,
    "s": 68.085,
    "l": 36.863
  },
  "oklch": {
    "l": 0.38943,
    "c": 0.18727,
    "h": 291.3
  },
  "luminance": 0.04934
}

Semantic roles & 50–950 ramp

primary
#4C1E9E
secondary
#9BC355
accent
#EB3DAC
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #4C1E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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