#4C1A82#4C1A82

#4C1A82 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.161 H 299.9°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#4C1A82
RGBrgb(76, 26, 130)
HSLhsl(269, 67%, 31%)
HSVhsv(269, 80%, 51%)
CMYKcmyk(41.5%, 80%, 0%, 49%)
CIE-LABlab(23.29, 43.92, -48.67)
CIE-LCHlch(23.29, 65.56, 312.06°)
OKLaboklab(35.87% 0.0801 -0.1391)
OKLCHoklch(35.87% 0.161 299.9)
XYZxyz(7.3781, 3.8869, 21.4763)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1A82 #50821A
analogous
#1A1C82 #4C1A82 #801A82
triadic
#4C1A82 #824C1A #1A824C
tetradic
#4C1A82 #821A1C #50821A #1A8280
square
#4C1A82 #821A1C #50821A #1A8280
split-complementary
#4C1A82 #82801A #1C821A
monochromatic
#10061C #2E104F #4C1A82 #6A24B5 #883ED8

Accessibility & contrast

On white

11.82
#4C1A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4C1A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1A82
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1A82#FFFFFF#000000##FFFFFF
##4C1A821.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003785
Deuteranopia (green-blind)
#003780
Tritanopia (blue-blind)
#3F364E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4c1a82;
/* rgb */ color: rgb(76, 26, 130);
/* oklch */ color: oklch(35.9% 0.161 299.9);
Tailwind
colors: {
  custom: {
    50: '#845da7',
    500: '#4c1a82',
    950: '#000000',
  },
}
SCSS
$custom: #4c1a82;
$custom-light: #845da7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1a82",
  "rgb": {
    "r": 76,
    "g": 26,
    "b": 130
  },
  "hsl": {
    "h": 268.846,
    "s": 66.667,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3587,
    "c": 0.16054,
    "h": 299.9
  },
  "luminance": 0.03887
}

Semantic roles & 50–950 ramp

primary
#4C1A82
secondary
#7EB642
accent
#EA3E97
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #4C1A82

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

Preview Lab → · Contrast checker → · Palette generator →

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