#4C1D93#4C1D93

#4C1D93 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.8% C 0.176 H 294.3°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#4C1D93
RGBrgb(76, 29, 147)
HSLhsl(264, 67%, 35%)
HSVhsv(264, 80%, 58%)
CMYKcmyk(48.3%, 80.3%, 0%, 42.4%)
CIE-LABlab(25.33, 47.08, -55.95)
CIE-LCHlch(25.33, 73.12, 310.08°)
OKLaboklab(37.77% 0.0724 -0.1605)
OKLCHoklch(37.77% 0.176 294.3)
XYZxyz(8.6849, 4.5216, 28.0133)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1D93 #64931D
analogous
#1D2993 #4C1D93 #871D93
triadic
#4C1D93 #934C1D #1D934C
tetradic
#4C1D93 #931D29 #64931D #1D9387
square
#4C1D93 #931D29 #64931D #1D9387
split-complementary
#4C1D93 #93871D #29931D
monochromatic
#17092D #321360 #4C1D93 #6627C6 #874EDC

Accessibility & contrast

On white

11.03
#4C1D93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4C1D93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1D93
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1D93#FFFFFF#000000##FFFFFF
##4C1D931.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D96
Deuteranopia (green-blind)
#003A91
Tritanopia (blue-blind)
#373E58
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4c1d93;
/* rgb */ color: rgb(76, 29, 147);
/* oklch */ color: oklch(37.8% 0.176 294.3);
Tailwind
colors: {
  custom: {
    50: '#865fb4',
    500: '#4c1d93',
    950: '#000000',
  },
}
SCSS
$custom: #4c1d93;
$custom-light: #865fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1d93",
  "rgb": {
    "r": 76,
    "g": 29,
    "b": 147
  },
  "hsl": {
    "h": 263.898,
    "s": 67.045,
    "l": 34.51
  },
  "oklch": {
    "l": 0.37772,
    "c": 0.17611,
    "h": 294.3
  },
  "luminance": 0.04522
}

Semantic roles & 50–950 ramp

primary
#4C1D93
secondary
#91BF4D
accent
#EA3EA5
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4C1D93

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

Preview Lab → · Contrast checker → · Palette generator →

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