#4C1E82#4C1E82

#4C1E82 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.156 H 299.3°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#4C1E82
RGBrgb(76, 30, 130)
HSLhsl(268, 63%, 31%)
HSVhsv(268, 77%, 51%)
CMYKcmyk(41.5%, 76.9%, 0%, 49%)
CIE-LABlab(23.92, 42.12, -47.64)
CIE-LCHlch(23.92, 63.59, 311.48°)
OKLaboklab(36.31% 0.0764 -0.1361)
OKLCHoklch(36.31% 0.156 299.3)
XYZxyz(7.4730, 4.0767, 21.5079)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1E82 #54821E
analogous
#1E2282 #4C1E82 #7E1E82
triadic
#4C1E82 #824C1E #1E824C
tetradic
#4C1E82 #821E22 #54821E #1E827E
square
#4C1E82 #821E22 #54821E #1E827E
split-complementary
#4C1E82 #827E1E #22821E
monochromatic
#12071F #2F1350 #4C1E82 #6929B4 #8846D4

Accessibility & contrast

On white

11.57
#4C1E82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4C1E82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1E82
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1E82#FFFFFF#000000##FFFFFF
##4C1E821.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c1e82;
/* rgb */ color: rgb(76, 30, 130);
/* oklch */ color: oklch(36.3% 0.156 299.3);
Tailwind
colors: {
  custom: {
    50: '#845fa7',
    500: '#4c1e82',
    950: '#000000',
  },
}
SCSS
$custom: #4c1e82;
$custom-light: #845fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1e82",
  "rgb": {
    "r": 76,
    "g": 30,
    "b": 130
  },
  "hsl": {
    "h": 267.6,
    "s": 62.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36312,
    "c": 0.15614,
    "h": 299.3
  },
  "luminance": 0.04077
}

Semantic roles & 50–950 ramp

primary
#4C1E82
secondary
#82B547
accent
#E6429A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4C1E82

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

Preview Lab → · Contrast checker → · Palette generator →

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