#4C1678#4C1678

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

Color values

HEX#4C1678
RGBrgb(76, 22, 120)
HSLhsl(273, 69%, 28%)
HSVhsv(273, 82%, 47%)
CMYKcmyk(36.7%, 81.7%, 0%, 52.9%)
CIE-LABlab(21.82, 43.07, -44.73)
CIE-LCHlch(21.82, 62.09, 313.92°)
OKLaboklab(34.57% 0.0864 -0.1275)
OKLCHoklch(34.57% 0.154 304.1)
XYZxyz(6.6568, 3.4664, 18.0840)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1678 #427816
analogous
#1B1678 #4C1678 #781673
triadic
#4C1678 #784C16 #16784C
tetradic
#4C1678 #781B16 #427816 #167378
square
#4C1678 #781B16 #427816 #167378
split-complementary
#4C1678 #737816 #16781B
monochromatic
#10051A #2B0D44 #4C1678 #6D1FAC #8D2FD9

Accessibility & contrast

On white

12.40
#4C1678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4C1678 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1678
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1678#FFFFFF#000000##FFFFFF
##4C16781.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337B
Deuteranopia (green-blind)
#003476
Tritanopia (blue-blind)
#433047
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4c1678;
/* rgb */ color: rgb(76, 22, 120);
/* oklch */ color: oklch(34.6% 0.154 304.1);
Tailwind
colors: {
  custom: {
    50: '#835aa0',
    500: '#4c1678',
    950: '#000000',
  },
}
SCSS
$custom: #4c1678;
$custom-light: #835aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1678",
  "rgb": {
    "r": 76,
    "g": 22,
    "b": 120
  },
  "hsl": {
    "h": 273.061,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34565,
    "c": 0.15404,
    "h": 304.1
  },
  "luminance": 0.03466
}

Semantic roles & 50–950 ramp

primary
#4C1678
secondary
#6FAD3C
accent
#EC3C8B
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #4C1678

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

Preview Lab → · Contrast checker → · Palette generator →

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