#4C1774#4C1774

#4C1774 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.149 H 305.6°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#4C1774
RGBrgb(76, 23, 116)
HSLhsl(274, 67%, 27%)
HSVhsv(274, 80%, 45%)
CMYKcmyk(34.5%, 80.2%, 0%, 54.5%)
CIE-LABlab(21.62, 41.68, -42.50)
CIE-LCHlch(21.62, 59.52, 314.44°)
OKLaboklab(34.31% 0.0866 -0.121)
OKLCHoklch(34.31% 0.149 305.6)
XYZxyz(6.4386, 3.4103, 16.8387)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1774 #3F7417
analogous
#1E1774 #4C1774 #74176D
triadic
#4C1774 #744C17 #17744C
tetradic
#4C1774 #741E17 #3F7417 #176D74
square
#4C1774 #741E17 #3F7417 #176D74
split-complementary
#4C1774 #6D7417 #17741E
monochromatic
#11051A #2B0D41 #4C1774 #6D21A7 #8E30D6

Accessibility & contrast

On white

12.49
#4C1774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4C1774 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1774
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1774#FFFFFF#000000##FFFFFF
##4C17741.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003277
Deuteranopia (green-blind)
#003472
Tritanopia (blue-blind)
#452F45
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4c1774;
/* rgb */ color: rgb(76, 23, 116);
/* oklch */ color: oklch(34.3% 0.149 305.6);
Tailwind
colors: {
  custom: {
    50: '#835b9d',
    500: '#4c1774',
    950: '#000000',
  },
}
SCSS
$custom: #4c1774;
$custom-light: #835b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1774",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 116
  },
  "hsl": {
    "h": 274.194,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.34314,
    "c": 0.14877,
    "h": 305.6
  },
  "luminance": 0.0341
}

Semantic roles & 50–950 ramp

primary
#4C1774
secondary
#6CA93D
accent
#EA3E88
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1774

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

Preview Lab → · Contrast checker → · Palette generator →

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