#4C1876#4C1876

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

Color values

HEX#4C1876
RGBrgb(76, 24, 118)
HSLhsl(273, 66%, 28%)
HSVhsv(273, 80%, 46%)
CMYKcmyk(35.6%, 79.7%, 0%, 53.7%)
CIE-LABlab(21.94, 41.75, -43.26)
CIE-LCHlch(21.94, 60.12, 313.98°)
OKLaboklab(34.59% 0.0852 -0.1232)
OKLCHoklch(34.59% 0.15 304.6)
XYZxyz(6.5764, 3.4978, 17.4647)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1876 #427618
analogous
#1D1876 #4C1876 #761871
triadic
#4C1876 #764C18 #18764C
tetradic
#4C1876 #761D18 #427618 #187176
square
#4C1876 #761D18 #427618 #187176
split-complementary
#4C1876 #717618 #18761D
monochromatic
#100519 #2B0E43 #4C1876 #6D22A9 #8D33D5

Accessibility & contrast

On white

12.36
#4C1876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4C1876 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1876
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1876#FFFFFF#000000##FFFFFF
##4C18761.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c1876;
/* rgb */ color: rgb(76, 24, 118);
/* oklch */ color: oklch(34.6% 0.150 304.6);
Tailwind
colors: {
  custom: {
    50: '#835b9e',
    500: '#4c1876',
    950: '#000000',
  },
}
SCSS
$custom: #4c1876;
$custom-light: #835b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1876",
  "rgb": {
    "r": 76,
    "g": 24,
    "b": 118
  },
  "hsl": {
    "h": 273.191,
    "s": 66.197,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34591,
    "c": 0.14978,
    "h": 304.6
  },
  "luminance": 0.03498
}

Semantic roles & 50–950 ramp

primary
#4C1876
secondary
#6FAB3F
accent
#E93F8B
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1876

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

Preview Lab → · Contrast checker → · Palette generator →

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