#4C2479#4C2479

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

Color values

HEX#4C2479
RGBrgb(76, 36, 121)
HSLhsl(268, 54%, 31%)
HSVhsv(268, 70%, 47%)
CMYKcmyk(37.2%, 70.2%, 0%, 52.5%)
CIE-LABlab(24.25, 36.69, -41.41)
CIE-LCHlch(24.25, 55.33, 311.54°)
OKLaboklab(36.31% 0.0718 -0.1179)
OKLCHoklch(36.31% 0.138 301.4)
XYZxyz(7.0617, 4.1787, 18.5200)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2479 #517924
analogous
#242779 #4C2479 #762479
triadic
#4C2479 #794C24 #24794C
tetradic
#4C2479 #792427 #517924 #247976
square
#4C2479 #792427 #517924 #247976
split-complementary
#4C2479 #797624 #277924
monochromatic
#11081B #2E164A #4C2479 #6A32A8 #884DCA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C2479#FFFFFF#000000##FFFFFF
##4C24791.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)
#00397C
Deuteranopia (green-blind)
#003977
Tritanopia (blue-blind)
#42384B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c2479;
/* rgb */ color: rgb(76, 36, 121);
/* oklch */ color: oklch(36.3% 0.138 301.4);
Tailwind
colors: {
  custom: {
    50: '#8262a0',
    500: '#4c2479',
    950: '#000000',
  },
}
SCSS
$custom: #4c2479;
$custom-light: #8262a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2479",
  "rgb": {
    "r": 76,
    "g": 36,
    "b": 121
  },
  "hsl": {
    "h": 268.235,
    "s": 54.14,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36312,
    "c": 0.13802,
    "h": 301.4
  },
  "luminance": 0.04179
}

Semantic roles & 50–950 ramp

primary
#4C2479
secondary
#7FAC4D
accent
#DE4A98
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #4C2479

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

Preview Lab → · Contrast checker → · Palette generator →

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