#4C1C7B#4C1C7B

#4C1C7B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.151 H 302.1°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#4C1C7B
RGBrgb(76, 28, 123)
HSLhsl(270, 63%, 30%)
HSVhsv(270, 77%, 48%)
CMYKcmyk(38.2%, 77.2%, 0%, 51.8%)
CIE-LABlab(22.99, 41.23, -44.74)
CIE-LCHlch(22.99, 60.84, 312.66°)
OKLaboklab(35.47% 0.0801 -0.1276)
OKLCHoklch(35.47% 0.151 302.1)
XYZxyz(6.9700, 3.7970, 19.1007)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1C7B #4B7B1C
analogous
#1D1C7B #4C1C7B #7B1C7B
triadic
#4C1C7B #7B4C1C #1C7B4C
tetradic
#4C1C7B #7B1D1C #4B7B1C #1C7B7B
square
#4C1C7B #7B1D1C #4B7B1C #1C7B7B
split-complementary
#4C1C7B #7B7B1C #1C7B1D
monochromatic
#0F0619 #2D1149 #4C1C7B #6B27AD #893ED3

Accessibility & contrast

On white

11.94
#4C1C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4C1C7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1C7B
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1C7B#FFFFFF#000000##FFFFFF
##4C1C7B1.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#003679
Tritanopia (blue-blind)
#42344A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4c1c7b;
/* rgb */ color: rgb(76, 28, 123);
/* oklch */ color: oklch(35.5% 0.151 302.1);
Tailwind
colors: {
  custom: {
    50: '#835da2',
    500: '#4c1c7b',
    950: '#000000',
  },
}
SCSS
$custom: #4c1c7b;
$custom-light: #835da2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1c7b",
  "rgb": {
    "r": 76,
    "g": 28,
    "b": 123
  },
  "hsl": {
    "h": 270.316,
    "s": 62.914,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35465,
    "c": 0.15064,
    "h": 302.1
  },
  "luminance": 0.03797
}

Semantic roles & 50–950 ramp

primary
#4C1C7B
secondary
#79AF44
accent
#E64293
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C1C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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