#4C1776#4C1776

#4C1776 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.151 H 304.8°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#4C1776
RGBrgb(76, 23, 118)
HSLhsl(273, 67%, 28%)
HSVhsv(273, 81%, 46%)
CMYKcmyk(35.6%, 80.5%, 0%, 53.7%)
CIE-LABlab(21.79, 42.17, -43.50)
CIE-LCHlch(21.79, 60.59, 314.11°)
OKLaboklab(34.49% 0.0861 -0.1239)
OKLCHoklch(34.49% 0.151 304.8)
XYZxyz(6.5562, 3.4573, 17.4580)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1776 #417617
analogous
#1D1776 #4C1776 #761770
triadic
#4C1776 #764C17 #17764C
tetradic
#4C1776 #761D17 #417617 #177076
square
#4C1776 #761D17 #417617 #177076
split-complementary
#4C1776 #707617 #17761D
monochromatic
#10051A #2B0D43 #4C1776 #6D21A9 #8D31D7

Accessibility & contrast

On white

12.42
#4C1776 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1776
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1776#FFFFFF#000000##FFFFFF
##4C17761.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c1776;
/* rgb */ color: rgb(76, 23, 118);
/* oklch */ color: oklch(34.5% 0.151 304.8);
Tailwind
colors: {
  custom: {
    50: '#835b9e',
    500: '#4c1776',
    950: '#000000',
  },
}
SCSS
$custom: #4c1776;
$custom-light: #835b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1776",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 118
  },
  "hsl": {
    "h": 273.474,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.34488,
    "c": 0.15088,
    "h": 304.8
  },
  "luminance": 0.03457
}

Semantic roles & 50–950 ramp

primary
#4C1776
secondary
#6EAB3E
accent
#EA3E8A
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1776

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

Preview Lab → · Contrast checker → · Palette generator →

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