#4C2778#4C2778

#4C2778 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.7% C 0.133 H 301.1°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#4C2778
RGBrgb(76, 39, 120)
HSLhsl(267, 51%, 31%)
HSVhsv(267, 68%, 47%)
CMYKcmyk(36.7%, 67.5%, 0%, 52.9%)
CIE-LABlab(24.78, 34.77, -39.93)
CIE-LCHlch(24.78, 52.95, 311.05°)
OKLaboklab(36.66% 0.0683 -0.1135)
OKLCHoklch(36.66% 0.133 301.1)
XYZxyz(7.0954, 4.3436, 18.2302)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2778 #537827
analogous
#272B78 #4C2778 #742778
triadic
#4C2778 #784C27 #27784C
tetradic
#4C2778 #78272B #537827 #277874
square
#4C2778 #78272B #537827 #277874
split-complementary
#4C2778 #787427 #2B7827
monochromatic
#11091C #2F184A #4C2778 #6936A6 #8852C7

Accessibility & contrast

On white

11.24
#4C2778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4C2778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2778
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2778#FFFFFF#000000##FFFFFF
##4C27781.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7A
Deuteranopia (green-blind)
#043A76
Tritanopia (blue-blind)
#43394C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4c2778;
/* rgb */ color: rgb(76, 39, 120);
/* oklch */ color: oklch(36.7% 0.133 301.1);
Tailwind
colors: {
  custom: {
    50: '#8264a0',
    500: '#4c2778',
    950: '#000000',
  },
}
SCSS
$custom: #4c2778;
$custom-light: #8264a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2778",
  "rgb": {
    "r": 76,
    "g": 39,
    "b": 120
  },
  "hsl": {
    "h": 267.407,
    "s": 50.943,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36663,
    "c": 0.13251,
    "h": 301.1
  },
  "luminance": 0.04344
}

Semantic roles & 50–950 ramp

primary
#4C2778
secondary
#81AA51
accent
#DA4D9A
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050F
muted
#7C7A7E

Preview Lab

Preview with #4C2778

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

Preview Lab → · Contrast checker → · Palette generator →

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