#4C2579#4C2579

#4C2579 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.137 H 301.1°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#4C2579
RGBrgb(76, 37, 121)
HSLhsl(268, 53%, 31%)
HSVhsv(268, 69%, 47%)
CMYKcmyk(37.2%, 69.4%, 0%, 52.5%)
CIE-LABlab(24.45, 36.15, -41.09)
CIE-LCHlch(24.45, 54.73, 311.34°)
OKLaboklab(36.45% 0.0707 -0.1169)
OKLCHoklch(36.45% 0.137 301.1)
XYZxyz(7.0924, 4.2401, 18.5302)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2579 #527925
analogous
#252879 #4C2579 #762579
triadic
#4C2579 #794C25 #25794C
tetradic
#4C2579 #792528 #527925 #257976
square
#4C2579 #792528 #527925 #257976
split-complementary
#4C2579 #797625 #287925
monochromatic
#11081B #2F174A #4C2579 #6933A8 #884FC9

Accessibility & contrast

On white

11.36
#4C2579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4C2579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2579
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2579#FFFFFF#000000##FFFFFF
##4C25791.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7C
Deuteranopia (green-blind)
#003A77
Tritanopia (blue-blind)
#42384B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c2579;
/* rgb */ color: rgb(76, 37, 121);
/* oklch */ color: oklch(36.5% 0.137 301.1);
Tailwind
colors: {
  custom: {
    50: '#8262a0',
    500: '#4c2579',
    950: '#000000',
  },
}
SCSS
$custom: #4c2579;
$custom-light: #8262a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2579",
  "rgb": {
    "r": 76,
    "g": 37,
    "b": 121
  },
  "hsl": {
    "h": 267.857,
    "s": 53.165,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36453,
    "c": 0.13662,
    "h": 301.1
  },
  "luminance": 0.0424
}

Semantic roles & 50–950 ramp

primary
#4C2579
secondary
#80AB4E
accent
#DD4B99
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #4C2579

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

Preview Lab → · Contrast checker → · Palette generator →

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