#4C1174#4C1174

#4C1174 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.155 H 306.3°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#4C1174
RGBrgb(76, 17, 116)
HSLhsl(276, 74%, 26%)
HSVhsv(276, 85%, 45%)
CMYKcmyk(34.5%, 85.3%, 0%, 54.5%)
CIE-LABlab(20.82, 43.99, -43.79)
CIE-LCHlch(20.82, 62.07, 315.13°)
OKLaboklab(33.76% 0.0917 -0.1247)
OKLCHoklch(33.76% 0.155 306.3)
XYZxyz(6.3326, 3.1984, 16.8034)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1174 #397411
analogous
#1B1174 #4C1174 #74116A
triadic
#4C1174 #744C11 #11744C
tetradic
#4C1174 #741B11 #397411 #116A74
square
#4C1174 #741B11 #397411 #116A74
split-complementary
#4C1174 #6A7411 #11741B
monochromatic
#11041B #29093F #4C1174 #6F19A9 #9221DE

Accessibility & contrast

On white

12.81
#4C1174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#4C1174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1174
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1174#FFFFFF#000000##FFFFFF
##4C11741.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.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: #4c1174;
/* rgb */ color: rgb(76, 17, 116);
/* oklch */ color: oklch(33.8% 0.155 306.3);
Tailwind
colors: {
  custom: {
    50: '#83589d',
    500: '#4c1174',
    950: '#000000',
  },
}
SCSS
$custom: #4c1174;
$custom-light: #83589d;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1174",
  "rgb": {
    "r": 76,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 275.758,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.33758,
    "c": 0.15481,
    "h": 306.3
  },
  "luminance": 0.03198
}

Semantic roles & 50–950 ramp

primary
#4C1174
secondary
#65AB36
accent
#F13782
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1174

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

Preview Lab → · Contrast checker → · Palette generator →

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