#4C1D82#4C1D82

#4C1D82 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.157 H 299.5°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#4C1D82
RGBrgb(76, 29, 130)
HSLhsl(268, 64%, 31%)
HSVhsv(268, 78%, 51%)
CMYKcmyk(41.5%, 77.7%, 0%, 49%)
CIE-LABlab(23.76, 42.58, -47.91)
CIE-LCHlch(23.76, 64.10, 311.63°)
OKLaboklab(36.2% 0.0774 -0.1369)
OKLCHoklch(36.2% 0.157 299.5)
XYZxyz(7.4481, 4.0268, 21.4996)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1D82 #53821D
analogous
#1D2082 #4C1D82 #7E1D82
triadic
#4C1D82 #824C1D #1D824C
tetradic
#4C1D82 #821D20 #53821D #1D827E
square
#4C1D82 #821D20 #53821D #1D827E
split-complementary
#4C1D82 #827E1D #20821D
monochromatic
#11071E #2F1250 #4C1D82 #6928B4 #8844D5

Accessibility & contrast

On white

11.63
#4C1D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4C1D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1D82
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1D82#FFFFFF#000000##FFFFFF
##4C1D821.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c1d82;
/* rgb */ color: rgb(76, 29, 130);
/* oklch */ color: oklch(36.2% 0.157 299.5);
Tailwind
colors: {
  custom: {
    50: '#845ea7',
    500: '#4c1d82',
    950: '#000000',
  },
}
SCSS
$custom: #4c1d82;
$custom-light: #845ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1d82",
  "rgb": {
    "r": 76,
    "g": 29,
    "b": 130
  },
  "hsl": {
    "h": 267.921,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36197,
    "c": 0.15728,
    "h": 299.5
  },
  "luminance": 0.04027
}

Semantic roles & 50–950 ramp

primary
#4C1D82
secondary
#81B546
accent
#E7419A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4C1D82

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

Preview Lab → · Contrast checker → · Palette generator →

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