#4C1171#4C1171

#4C1171 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.152 H 307.6°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#4C1171
RGBrgb(76, 17, 113)
HSLhsl(277, 74%, 25%)
HSVhsv(277, 85%, 44%)
CMYKcmyk(32.7%, 85%, 0%, 55.7%)
CIE-LABlab(20.56, 43.28, -42.29)
CIE-LCHlch(20.56, 60.51, 315.66°)
OKLaboklab(33.49% 0.0926 -0.1203)
OKLCHoklch(33.49% 0.152 307.6)
XYZxyz(6.1609, 3.1297, 15.8991)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1171 #367111
analogous
#1C1171 #4C1171 #711166
triadic
#4C1171 #714C11 #11714C
tetradic
#4C1171 #711C11 #367111 #116671
square
#4C1171 #711C11 #367111 #116671
split-complementary
#4C1171 #667111 #11711C
monochromatic
#12041B #28093C #4C1171 #7019A6 #9421DB

Accessibility & contrast

On white

12.92
#4C1171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1171
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1171#FFFFFF#000000##FFFFFF
##4C11711.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003074
Deuteranopia (green-blind)
#00326F
Tritanopia (blue-blind)
#462B42
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4c1171;
/* rgb */ color: rgb(76, 17, 113);
/* oklch */ color: oklch(33.5% 0.152 307.6);
Tailwind
colors: {
  custom: {
    50: '#83589b',
    500: '#4c1171',
    950: '#000000',
  },
}
SCSS
$custom: #4c1171;
$custom-light: #83589b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1171",
  "rgb": {
    "r": 76,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 276.875,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.33491,
    "c": 0.15183,
    "h": 307.6
  },
  "luminance": 0.0313
}

Semantic roles & 50–950 ramp

primary
#4C1171
secondary
#62A836
accent
#F1377F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1171

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

Preview Lab → · Contrast checker → · Palette generator →

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