#4C1971#4C1971

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

Color values

HEX#4C1971
RGBrgb(76, 25, 113)
HSLhsl(275, 64%, 27%)
HSVhsv(275, 78%, 44%)
CMYKcmyk(32.7%, 77.9%, 0%, 55.7%)
CIE-LABlab(21.67, 40.07, -40.48)
CIE-LCHlch(21.67, 56.96, 314.71°)
OKLaboklab(34.27% 0.0853 -0.1151)
OKLCHoklch(34.27% 0.143 306.6)
XYZxyz(6.3081, 3.4241, 15.9482)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1971 #3E7119
analogous
#201971 #4C1971 #71196A
triadic
#4C1971 #714C19 #19714C
tetradic
#4C1971 #712019 #3E7119 #196A71
square
#4C1971 #712019 #3E7119 #196A71
split-complementary
#4C1971 #6A7119 #197120
monochromatic
#110619 #2A0E3F #4C1971 #6E24A3 #8F33D2

Accessibility & contrast

On white

12.46
#4C1971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1971
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1971#FFFFFF#000000##FFFFFF
##4C19711.0012.461.6812.46
#FFFFFF12.461.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c1971;
/* rgb */ color: rgb(76, 25, 113);
/* oklch */ color: oklch(34.3% 0.143 306.6);
Tailwind
colors: {
  custom: {
    50: '#825b9a',
    500: '#4c1971',
    950: '#000000',
  },
}
SCSS
$custom: #4c1971;
$custom-light: #825b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1971",
  "rgb": {
    "r": 76,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 274.773,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.3427,
    "c": 0.14326,
    "h": 306.6
  },
  "luminance": 0.03424
}

Semantic roles & 50–950 ramp

primary
#4C1971
secondary
#6BA640
accent
#E74187
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1971

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

Preview Lab → · Contrast checker → · Palette generator →

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