#4C1D87#4C1D87

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

Color values

HEX#4C1D87
RGBrgb(76, 29, 135)
HSLhsl(267, 65%, 32%)
HSVhsv(267, 79%, 53%)
CMYKcmyk(43.7%, 78.5%, 0%, 47.1%)
CIE-LABlab(24.21, 43.90, -50.32)
CIE-LCHlch(24.21, 66.78, 311.10°)
OKLaboklab(36.65% 0.076 -0.144)
OKLCHoklch(36.65% 0.163 297.8)
XYZxyz(7.7919, 4.1644, 23.3102)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1D87 #58871D
analogous
#1D2387 #4C1D87 #811D87
triadic
#4C1D87 #874C1D #1D874C
tetradic
#4C1D87 #871D23 #58871D #1D8781
square
#4C1D87 #871D23 #58871D #1D8781
split-complementary
#4C1D87 #87811D #23871D
monochromatic
#130722 #301255 #4C1D87 #6828B9 #8747D7

Accessibility & contrast

On white

11.46
#4C1D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4C1D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1D87
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1D87#FFFFFF#000000##FFFFFF
##4C1D871.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c1d87;
/* rgb */ color: rgb(76, 29, 135);
/* oklch */ color: oklch(36.6% 0.163 297.8);
Tailwind
colors: {
  custom: {
    50: '#845fab',
    500: '#4c1d87',
    950: '#000000',
  },
}
SCSS
$custom: #4c1d87;
$custom-light: #845fab;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1d87",
  "rgb": {
    "r": 76,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 266.604,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36649,
    "c": 0.16285,
    "h": 297.8
  },
  "luminance": 0.04164
}

Semantic roles & 50–950 ramp

primary
#4C1D87
secondary
#86B946
accent
#E8409D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4C1D87

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

Preview Lab → · Contrast checker → · Palette generator →

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