#4C2771#4C2771

#4C2771 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.1% C 0.124 H 303.8°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#4C2771
RGBrgb(76, 39, 113)
HSLhsl(270, 49%, 30%)
HSVhsv(270, 65%, 44%)
CMYKcmyk(32.7%, 65.5%, 0%, 55.7%)
CIE-LABlab(24.26, 32.88, -36.29)
CIE-LCHlch(24.26, 48.97, 312.17°)
OKLaboklab(36.12% 0.0689 -0.1028)
OKLCHoklch(36.12% 0.124 303.8)
XYZxyz(6.6860, 4.1798, 16.0741)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2771 #4C7127
analogous
#272771 #4C2771 #712771
triadic
#4C2771 #714C27 #27714C
tetradic
#4C2771 #712727 #4C7127 #277171
square
#4C2771 #712727 #4C7127 #277171
split-complementary
#4C2771 #717127 #277127
monochromatic
#0F0817 #2D1744 #4C2771 #6B379E #8950C3

Accessibility & contrast

On white

11.44
#4C2771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4C2771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2771
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2771#FFFFFF#000000##FFFFFF
##4C27711.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003973
Deuteranopia (green-blind)
#133A6F
Tritanopia (blue-blind)
#453748
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c2771;
/* rgb */ color: rgb(76, 39, 113);
/* oklch */ color: oklch(36.1% 0.124 303.8);
Tailwind
colors: {
  custom: {
    50: '#81639a',
    500: '#4c2771',
    950: '#000000',
  },
}
SCSS
$custom: #4c2771;
$custom-light: #81639a;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2771",
  "rgb": {
    "r": 76,
    "g": 39,
    "b": 113
  },
  "hsl": {
    "h": 270,
    "s": 48.684,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36123,
    "c": 0.12379,
    "h": 303.8
  },
  "luminance": 0.0418
}

Semantic roles & 50–950 ramp

primary
#4C2771
secondary
#7AA350
accent
#D85094
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #4C2771

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

Preview Lab → · Contrast checker → · Palette generator →

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