#4C1981#4C1981

#4C1981 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.160 H 300.4°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#4C1981
RGBrgb(76, 25, 129)
HSLhsl(269, 68%, 30%)
HSVhsv(269, 81%, 51%)
CMYKcmyk(41.1%, 80.6%, 0%, 49.4%)
CIE-LABlab(23.06, 44.09, -48.43)
CIE-LCHlch(23.06, 65.49, 312.31°)
OKLaboklab(35.68% 0.0812 -0.1384)
OKLCHoklch(35.68% 0.16 300.4)
XYZxyz(7.2896, 3.8167, 21.1173)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1981 #4E8119
analogous
#191A81 #4C1981 #801981
triadic
#4C1981 #814C19 #19814C
tetradic
#4C1981 #81191A #4E8119 #198180
square
#4C1981 #81191A #4E8119 #198180
split-complementary
#4C1981 #818019 #1A8119
monochromatic
#10051A #2E0F4E #4C1981 #6A23B4 #893BD9

Accessibility & contrast

On white

11.91
#4C1981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1981
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1981#FFFFFF#000000##FFFFFF
##4C19811.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003784
Deuteranopia (green-blind)
#00367F
Tritanopia (blue-blind)
#40354D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4c1981;
/* rgb */ color: rgb(76, 25, 129);
/* oklch */ color: oklch(35.7% 0.160 300.4);
Tailwind
colors: {
  custom: {
    50: '#845ca6',
    500: '#4c1981',
    950: '#000000',
  },
}
SCSS
$custom: #4c1981;
$custom-light: #845ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1981",
  "rgb": {
    "r": 76,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 269.423,
    "s": 67.532,
    "l": 30.196
  },
  "oklch": {
    "l": 0.35676,
    "c": 0.16049,
    "h": 300.4
  },
  "luminance": 0.03817
}

Semantic roles & 50–950 ramp

primary
#4C1981
secondary
#7CB541
accent
#EA3D96
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C1981

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

Preview Lab → · Contrast checker → · Palette generator →

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