#4C1779#4C1779

#4C1779 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.154 H 303.6°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#4C1779
RGBrgb(76, 23, 121)
HSLhsl(272, 68%, 28%)
HSVhsv(272, 81%, 47%)
CMYKcmyk(37.2%, 81%, 0%, 52.5%)
CIE-LABlab(22.05, 42.91, -44.99)
CIE-LCHlch(22.05, 62.17, 313.65°)
OKLaboklab(34.75% 0.0853 -0.1283)
OKLCHoklch(34.75% 0.154 303.6)
XYZxyz(6.7373, 3.5298, 18.4118)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1779 #447917
analogous
#1B1779 #4C1779 #791775
triadic
#4C1779 #794C17 #17794C
tetradic
#4C1779 #791B17 #447917 #177579
square
#4C1779 #791B17 #447917 #177579
split-complementary
#4C1779 #757917 #17791B
monochromatic
#10051A #2C0D46 #4C1779 #6C21AC #8C32D8

Accessibility & contrast

On white

12.31
#4C1779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1779
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1779#FFFFFF#000000##FFFFFF
##4C17791.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c1779;
/* rgb */ color: rgb(76, 23, 121);
/* oklch */ color: oklch(34.8% 0.154 303.6);
Tailwind
colors: {
  custom: {
    50: '#835ba0',
    500: '#4c1779',
    950: '#000000',
  },
}
SCSS
$custom: #4c1779;
$custom-light: #835ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1779",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 121
  },
  "hsl": {
    "h": 272.449,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34753,
    "c": 0.15405,
    "h": 303.6
  },
  "luminance": 0.0353
}

Semantic roles & 50–950 ramp

primary
#4C1779
secondary
#71AE3E
accent
#EB3D8D
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C1779

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

Preview Lab → · Contrast checker → · Palette generator →

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