#4C1E87#4C1E87

#4C1E87 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.162 H 297.7°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#4C1E87
RGBrgb(76, 30, 135)
HSLhsl(266, 64%, 32%)
HSVhsv(266, 78%, 53%)
CMYKcmyk(43.7%, 77.8%, 0%, 47.1%)
CIE-LABlab(24.37, 43.44, -50.06)
CIE-LCHlch(24.37, 66.28, 310.95°)
OKLaboklab(36.76% 0.0751 -0.1432)
OKLCHoklch(36.76% 0.162 297.7)
XYZxyz(7.8168, 4.2142, 23.3186)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1E87 #59871E
analogous
#1E2487 #4C1E87 #811E87
triadic
#4C1E87 #874C1E #1E874C
tetradic
#4C1E87 #871E24 #59871E #1E8781
square
#4C1E87 #871E24 #59871E #1E8781
split-complementary
#4C1E87 #87811E #24871E
monochromatic
#140823 #301355 #4C1E87 #6829B9 #8749D7

Accessibility & contrast

On white

11.40
#4C1E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4C1E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1E87
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1E87#FFFFFF#000000##FFFFFF
##4C1E871.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003985
Tritanopia (blue-blind)
#3D3A51
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c1e87;
/* rgb */ color: rgb(76, 30, 135);
/* oklch */ color: oklch(36.8% 0.162 297.7);
Tailwind
colors: {
  custom: {
    50: '#845fab',
    500: '#4c1e87',
    950: '#000000',
  },
}
SCSS
$custom: #4c1e87;
$custom-light: #845fab;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1e87",
  "rgb": {
    "r": 76,
    "g": 30,
    "b": 135
  },
  "hsl": {
    "h": 266.286,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36761,
    "c": 0.16176,
    "h": 297.7
  },
  "luminance": 0.04214
}

Semantic roles & 50–950 ramp

primary
#4C1E87
secondary
#87B948
accent
#E7419E
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4C1E87

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

Preview Lab → · Contrast checker → · Palette generator →

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