#4C1979#4C1979

#4C1979 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.152 H 303.3°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#4C1979
RGBrgb(76, 25, 121)
HSLhsl(272, 66%, 29%)
HSVhsv(272, 79%, 47%)
CMYKcmyk(37.2%, 79.3%, 0%, 52.5%)
CIE-LABlab(22.35, 42.07, -44.51)
CIE-LCHlch(22.35, 61.24, 313.38°)
OKLaboklab(34.96% 0.0834 -0.1269)
OKLCHoklch(34.96% 0.152 303.3)
XYZxyz(6.7785, 3.6122, 18.4256)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1979 #467919
analogous
#1C1979 #4C1979 #791976
triadic
#4C1979 #794C19 #19794C
tetradic
#4C1979 #791C19 #467919 #197679
square
#4C1979 #791C19 #467919 #197679
split-complementary
#4C1979 #767919 #19791C
monochromatic
#100519 #2C0F46 #4C1979 #6C23AC #8B37D6

Accessibility & contrast

On white

12.19
#4C1979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4C1979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1979
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1979#FFFFFF#000000##FFFFFF
##4C19791.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347C
Deuteranopia (green-blind)
#003577
Tritanopia (blue-blind)
#433248
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4c1979;
/* rgb */ color: rgb(76, 25, 121);
/* oklch */ color: oklch(35.0% 0.152 303.3);
Tailwind
colors: {
  custom: {
    50: '#835ca0',
    500: '#4c1979',
    950: '#000000',
  },
}
SCSS
$custom: #4c1979;
$custom-light: #835ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1979",
  "rgb": {
    "r": 76,
    "g": 25,
    "b": 121
  },
  "hsl": {
    "h": 271.875,
    "s": 65.753,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34959,
    "c": 0.15188,
    "h": 303.3
  },
  "luminance": 0.03612
}

Semantic roles & 50–950 ramp

primary
#4C1979
secondary
#73AE40
accent
#E93F8F
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C1979

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

Preview Lab → · Contrast checker → · Palette generator →

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