#4C277B#4C277B

#4C277B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.9% C 0.136 H 300.0°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#4C277B
RGBrgb(76, 39, 123)
HSLhsl(266, 52%, 32%)
HSVhsv(266, 68%, 48%)
CMYKcmyk(38.2%, 68.3%, 0%, 51.8%)
CIE-LABlab(25.01, 35.59, -41.46)
CIE-LCHlch(25.01, 54.64, 310.65°)
OKLaboklab(36.9% 0.068 -0.118)
OKLCHoklch(36.9% 0.136 300)
XYZxyz(7.2803, 4.4175, 19.2042)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C277B #567B27
analogous
#272C7B #4C277B #76277B
triadic
#4C277B #7B4C27 #277B4C
tetradic
#4C277B #7B272C #567B27 #277B76
square
#4C277B #7B272C #567B27 #277B76
split-complementary
#4C277B #7B7627 #2C7B27
monochromatic
#130A1E #2F184D #4C277B #6936A9 #8754C9

Accessibility & contrast

On white

11.15
#4C277B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C277B
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C277B#FFFFFF#000000##FFFFFF
##4C277B1.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c277b;
/* rgb */ color: rgb(76, 39, 123);
/* oklch */ color: oklch(36.9% 0.136 300.0);
Tailwind
colors: {
  custom: {
    50: '#8264a2',
    500: '#4c277b',
    950: '#000000',
  },
}
SCSS
$custom: #4c277b;
$custom-light: #8264a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c277b",
  "rgb": {
    "r": 76,
    "g": 39,
    "b": 123
  },
  "hsl": {
    "h": 266.429,
    "s": 51.852,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36902,
    "c": 0.13622,
    "h": 300
  },
  "luminance": 0.04418
}

Semantic roles & 50–950 ramp

primary
#4C277B
secondary
#84AD51
accent
#DB4C9C
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4C277B

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

Preview Lab → · Contrast checker → · Palette generator →

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