#4C1977#4C1977

#4C1977 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.150 H 304.1°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#4C1977
RGBrgb(76, 25, 119)
HSLhsl(273, 65%, 28%)
HSVhsv(273, 79%, 47%)
CMYKcmyk(36.1%, 79%, 0%, 53.3%)
CIE-LABlab(22.17, 41.56, -43.51)
CIE-LCHlch(22.17, 60.17, 313.69°)
OKLaboklab(34.78% 0.084 -0.124)
OKLCHoklch(34.78% 0.15 304.1)
XYZxyz(6.6571, 3.5637, 17.7863)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1977 #447719
analogous
#1D1977 #4C1977 #771973
triadic
#4C1977 #774C19 #19774C
tetradic
#4C1977 #771D19 #447719 #197377
square
#4C1977 #771D19 #447719 #197377
split-complementary
#4C1977 #737719 #19771D
monochromatic
#100519 #2C0E44 #4C1977 #6C24AA #8C36D5

Accessibility & contrast

On white

12.26
#4C1977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1977
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1977#FFFFFF#000000##FFFFFF
##4C19771.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347A
Deuteranopia (green-blind)
#003575
Tritanopia (blue-blind)
#443147
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4c1977;
/* rgb */ color: rgb(76, 25, 119);
/* oklch */ color: oklch(34.8% 0.150 304.1);
Tailwind
colors: {
  custom: {
    50: '#835c9f',
    500: '#4c1977',
    950: '#000000',
  },
}
SCSS
$custom: #4c1977;
$custom-light: #835c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1977",
  "rgb": {
    "r": 76,
    "g": 25,
    "b": 119
  },
  "hsl": {
    "h": 272.553,
    "s": 65.278,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34784,
    "c": 0.14973,
    "h": 304.1
  },
  "luminance": 0.03564
}

Semantic roles & 50–950 ramp

primary
#4C1977
secondary
#71AC40
accent
#E8408D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #4C1977

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

Preview Lab → · Contrast checker → · Palette generator →

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