#4C1E88#4C1E88

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

Color values

HEX#4C1E88
RGBrgb(76, 30, 136)
HSLhsl(266, 64%, 33%)
HSVhsv(266, 78%, 53%)
CMYKcmyk(44.1%, 77.9%, 0%, 46.7%)
CIE-LABlab(24.46, 43.70, -50.54)
CIE-LCHlch(24.46, 66.81, 310.85°)
OKLaboklab(36.85% 0.0749 -0.1446)
OKLCHoklch(36.85% 0.163 297.4)
XYZxyz(7.8875, 4.2425, 23.6911)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1E88 #5A881E
analogous
#1E2588 #4C1E88 #811E88
triadic
#4C1E88 #884C1E #1E884C
tetradic
#4C1E88 #881E25 #5A881E #1E8881
square
#4C1E88 #881E25 #5A881E #1E8881
split-complementary
#4C1E88 #88811E #25881E
monochromatic
#140824 #301356 #4C1E88 #6829BA #8749D7

Accessibility & contrast

On white

11.36
#4C1E88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1E88
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1E88#FFFFFF#000000##FFFFFF
##4C1E881.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8B
Deuteranopia (green-blind)
#003986
Tritanopia (blue-blind)
#3C3A52
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c1e88;
/* rgb */ color: rgb(76, 30, 136);
/* oklch */ color: oklch(36.9% 0.163 297.4);
Tailwind
colors: {
  custom: {
    50: '#845fac',
    500: '#4c1e88',
    950: '#000000',
  },
}
SCSS
$custom: #4c1e88;
$custom-light: #845fac;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1e88",
  "rgb": {
    "r": 76,
    "g": 30,
    "b": 136
  },
  "hsl": {
    "h": 266.038,
    "s": 63.855,
    "l": 32.549
  },
  "oklch": {
    "l": 0.36852,
    "c": 0.16287,
    "h": 297.4
  },
  "luminance": 0.04243
}

Semantic roles & 50–950 ramp

primary
#4C1E88
secondary
#88B949
accent
#E7419F
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4C1E88

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

Preview Lab → · Contrast checker → · Palette generator →

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