#4C1D7C#4C1D7C

#4C1D7C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.151 H 301.6°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#4C1D7C
RGBrgb(76, 29, 124)
HSLhsl(270, 62%, 30%)
HSVhsv(270, 77%, 49%)
CMYKcmyk(38.7%, 76.6%, 0%, 51.4%)
CIE-LABlab(23.24, 41.02, -44.97)
CIE-LCHlch(23.24, 60.87, 312.37°)
OKLaboklab(35.67% 0.0789 -0.1283)
OKLCHoklch(35.67% 0.151 301.6)
XYZxyz(7.0571, 3.8704, 19.4401)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1D7C #4D7C1D
analogous
#1D1D7C #4C1D7C #7C1D7C
triadic
#4C1D7C #7C4C1D #1D7C4C
tetradic
#4C1D7C #7C1D1D #4D7C1D #1D7C7C
square
#4C1D7C #7C1D1D #4D7C1D #1D7C7C
split-complementary
#4C1D7C #7C7C1D #1D7C1D
monochromatic
#0F0619 #2E114A #4C1D7C #6A29AE #8941D3

Accessibility & contrast

On white

11.84
#4C1D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4C1D7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1D7C
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1D7C#FFFFFF#000000##FFFFFF
##4C1D7C1.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#42354B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4c1d7c;
/* rgb */ color: rgb(76, 29, 124);
/* oklch */ color: oklch(35.7% 0.151 301.6);
Tailwind
colors: {
  custom: {
    50: '#835ea3',
    500: '#4c1d7c',
    950: '#000000',
  },
}
SCSS
$custom: #4c1d7c;
$custom-light: #835ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1d7c",
  "rgb": {
    "r": 76,
    "g": 29,
    "b": 124
  },
  "hsl": {
    "h": 269.684,
    "s": 62.092,
    "l": 30
  },
  "oklch": {
    "l": 0.35668,
    "c": 0.15058,
    "h": 301.6
  },
  "luminance": 0.0387
}

Semantic roles & 50–950 ramp

primary
#4C1D7C
secondary
#7BB045
accent
#E54395
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C1D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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