#4C277A#4C277A

#4C277A is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.8% C 0.135 H 300.3°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#4C277A
RGBrgb(76, 39, 122)
HSLhsl(267, 52%, 32%)
HSVhsv(267, 68%, 48%)
CMYKcmyk(37.7%, 68%, 0%, 52.2%)
CIE-LABlab(24.93, 35.32, -40.95)
CIE-LCHlch(24.93, 54.08, 310.78°)
OKLaboklab(36.82% 0.0681 -0.1165)
OKLCHoklch(36.82% 0.135 300.3)
XYZxyz(7.2180, 4.3926, 18.8762)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C277A #557A27
analogous
#272C7A #4C277A #76277A
triadic
#4C277A #7A4C27 #277A4C
tetradic
#4C277A #7A272C #557A27 #277A76
square
#4C277A #7A272C #557A27 #277A76
split-complementary
#4C277A #7A7627 #2C7A27
monochromatic
#12091D #2F184C #4C277A #6936A8 #8753C8

Accessibility & contrast

On white

11.18
#4C277A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4C277A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C277A
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C277A#FFFFFF#000000##FFFFFF
##4C277A1.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7D
Deuteranopia (green-blind)
#003B78
Tritanopia (blue-blind)
#423A4D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4c277a;
/* rgb */ color: rgb(76, 39, 122);
/* oklch */ color: oklch(36.8% 0.135 300.3);
Tailwind
colors: {
  custom: {
    50: '#8264a1',
    500: '#4c277a',
    950: '#000000',
  },
}
SCSS
$custom: #4c277a;
$custom-light: #8264a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c277a",
  "rgb": {
    "r": 76,
    "g": 39,
    "b": 122
  },
  "hsl": {
    "h": 266.747,
    "s": 51.553,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36822,
    "c": 0.13499,
    "h": 300.3
  },
  "luminance": 0.04393
}

Semantic roles & 50–950 ramp

primary
#4C277A
secondary
#83AC51
accent
#DB4D9C
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4C277A

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

Preview Lab → · Contrast checker → · Palette generator →

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