#4C1074#4C1074

#4C1074 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.156 H 306.4°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#4C1074
RGBrgb(76, 16, 116)
HSLhsl(276, 76%, 26%)
HSVhsv(276, 86%, 45%)
CMYKcmyk(34.5%, 86.2%, 0%, 54.5%)
CIE-LABlab(20.70, 44.33, -43.98)
CIE-LCHlch(20.70, 62.44, 315.22°)
OKLaboklab(33.68% 0.0925 -0.1253)
OKLCHoklch(33.68% 0.156 306.4)
XYZxyz(6.3175, 3.1681, 16.7983)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1074 #387410
analogous
#1A1074 #4C1074 #74106A
triadic
#4C1074 #744C10 #10744C
tetradic
#4C1074 #741A10 #387410 #106A74
square
#4C1074 #741A10 #387410 #106A74
split-complementary
#4C1074 #6A7410 #10741A
monochromatic
#12041B #29093E #4C1074 #6F17AA #921FE0

Accessibility & contrast

On white

12.86
#4C1074 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#4C1074 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1074
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1074#FFFFFF#000000##FFFFFF
##4C10741.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003077
Deuteranopia (green-blind)
#003272
Tritanopia (blue-blind)
#452C44
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4c1074;
/* rgb */ color: rgb(76, 16, 116);
/* oklch */ color: oklch(33.7% 0.156 306.4);
Tailwind
colors: {
  custom: {
    50: '#83589d',
    500: '#4c1074',
    950: '#000000',
  },
}
SCSS
$custom: #4c1074;
$custom-light: #83589d;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1074",
  "rgb": {
    "r": 76,
    "g": 16,
    "b": 116
  },
  "hsl": {
    "h": 276,
    "s": 75.758,
    "l": 25.882
  },
  "oklch": {
    "l": 0.33677,
    "c": 0.15571,
    "h": 306.4
  },
  "luminance": 0.03168
}

Semantic roles & 50–950 ramp

primary
#4C1074
secondary
#64AB35
accent
#F23581
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1074

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

Preview Lab → · Contrast checker → · Palette generator →

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