#4C1C82#4C1C82

#4C1C82 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.158 H 299.6°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#4C1C82
RGBrgb(76, 28, 130)
HSLhsl(268, 65%, 31%)
HSVhsv(268, 78%, 51%)
CMYKcmyk(41.5%, 78.5%, 0%, 49%)
CIE-LABlab(23.60, 43.04, -48.17)
CIE-LCHlch(23.60, 64.60, 311.78°)
OKLaboklab(36.09% 0.0783 -0.1377)
OKLCHoklch(36.09% 0.158 299.6)
XYZxyz(7.4240, 3.9786, 21.4916)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1C82 #52821C
analogous
#1C1F82 #4C1C82 #7F1C82
triadic
#4C1C82 #824C1C #1C824C
tetradic
#4C1C82 #821C1F #52821C #1C827F
square
#4C1C82 #821C1F #52821C #1C827F
split-complementary
#4C1C82 #827F1C #1F821C
monochromatic
#11061D #2F1150 #4C1C82 #6927B4 #8842D6

Accessibility & contrast

On white

11.69
#4C1C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4C1C82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1C82
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1C82#FFFFFF#000000##FFFFFF
##4C1C821.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#003780
Tritanopia (blue-blind)
#3F374E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4c1c82;
/* rgb */ color: rgb(76, 28, 130);
/* oklch */ color: oklch(36.1% 0.158 299.6);
Tailwind
colors: {
  custom: {
    50: '#845ea7',
    500: '#4c1c82',
    950: '#000000',
  },
}
SCSS
$custom: #4c1c82;
$custom-light: #845ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1c82",
  "rgb": {
    "r": 76,
    "g": 28,
    "b": 130
  },
  "hsl": {
    "h": 268.235,
    "s": 64.557,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36085,
    "c": 0.1584,
    "h": 299.6
  },
  "luminance": 0.03979
}

Semantic roles & 50–950 ramp

primary
#4C1C82
secondary
#80B544
accent
#E84099
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4C1C82

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

Preview Lab → · Contrast checker → · Palette generator →

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