#4C1976#4C1976

#4C1976 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.149 H 304.5°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#4C1976
RGBrgb(76, 25, 118)
HSLhsl(273, 65%, 28%)
HSVhsv(273, 79%, 46%)
CMYKcmyk(35.6%, 78.8%, 0%, 53.7%)
CIE-LABlab(22.09, 41.31, -43.01)
CIE-LCHlch(22.09, 59.64, 313.85°)
OKLaboklab(34.7% 0.0842 -0.1225)
OKLCHoklch(34.7% 0.149 304.5)
XYZxyz(6.5974, 3.5398, 17.4717)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1976 #437619
analogous
#1D1976 #4C1976 #761971
triadic
#4C1976 #764C19 #19764C
tetradic
#4C1976 #761D19 #437619 #197176
square
#4C1976 #761D19 #437619 #197176
split-complementary
#4C1976 #717619 #19761D
monochromatic
#100519 #2B0E43 #4C1976 #6D24A8 #8C35D4

Accessibility & contrast

On white

12.30
#4C1976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4C1976 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1976
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1976#FFFFFF#000000##FFFFFF
##4C19761.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003479
Deuteranopia (green-blind)
#003574
Tritanopia (blue-blind)
#443046
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4c1976;
/* rgb */ color: rgb(76, 25, 118);
/* oklch */ color: oklch(34.7% 0.149 304.5);
Tailwind
colors: {
  custom: {
    50: '#835c9e',
    500: '#4c1976',
    950: '#000000',
  },
}
SCSS
$custom: #4c1976;
$custom-light: #835c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1976",
  "rgb": {
    "r": 76,
    "g": 25,
    "b": 118
  },
  "hsl": {
    "h": 272.903,
    "s": 65.035,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34697,
    "c": 0.14866,
    "h": 304.5
  },
  "luminance": 0.0354
}

Semantic roles & 50–950 ramp

primary
#4C1976
secondary
#70AB40
accent
#E8408C
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1976

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

Preview Lab → · Contrast checker → · Palette generator →

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