#4C1771#4C1771

#4C1771 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.146 H 306.9°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#4C1771
RGBrgb(76, 23, 113)
HSLhsl(275, 66%, 27%)
HSVhsv(275, 80%, 44%)
CMYKcmyk(32.7%, 79.6%, 0%, 55.7%)
CIE-LABlab(21.36, 40.95, -40.98)
CIE-LCHlch(21.36, 57.93, 314.98°)
OKLaboklab(34.06% 0.0873 -0.1165)
OKLCHoklch(34.06% 0.146 306.9)
XYZxyz(6.2669, 3.3416, 15.9344)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1771 #3C7117
analogous
#1F1771 #4C1771 #711769
triadic
#4C1771 #714C17 #17714C
tetradic
#4C1771 #711F17 #3C7117 #176971
square
#4C1771 #711F17 #3C7117 #176971
split-complementary
#4C1771 #697117 #17711F
monochromatic
#110519 #2A0D3E #4C1771 #6E21A4 #902ED4

Accessibility & contrast

On white

12.59
#4C1771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#4C1771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1771
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1771#FFFFFF#000000##FFFFFF
##4C17711.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#00346F
Tritanopia (blue-blind)
#462D43
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4c1771;
/* rgb */ color: rgb(76, 23, 113);
/* oklch */ color: oklch(34.1% 0.146 306.9);
Tailwind
colors: {
  custom: {
    50: '#825a9a',
    500: '#4c1771',
    950: '#000000',
  },
}
SCSS
$custom: #4c1771;
$custom-light: #825a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1771",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 275.333,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34056,
    "c": 0.1456,
    "h": 306.9
  },
  "luminance": 0.03342
}

Semantic roles & 50–950 ramp

primary
#4C1771
secondary
#69A73D
accent
#E93F85
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1771

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

Preview Lab → · Contrast checker → · Palette generator →

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