#4C2279#4C2279

#4C2279 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.0% C 0.141 H 301.8°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#4C2279
RGBrgb(76, 34, 121)
HSLhsl(269, 56%, 30%)
HSVhsv(269, 72%, 47%)
CMYKcmyk(37.2%, 71.9%, 0%, 52.5%)
CIE-LABlab(23.87, 37.75, -42.03)
CIE-LCHlch(23.87, 56.49, 311.93°)
OKLaboklab(36.04% 0.0741 -0.1197)
OKLCHoklch(36.04% 0.141 301.8)
XYZxyz(7.0029, 4.0610, 18.5004)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2279 #4F7922
analogous
#222379 #4C2279 #782279
triadic
#4C2279 #794C22 #22794C
tetradic
#4C2279 #792223 #4F7922 #227978
square
#4C2279 #792223 #4F7922 #227978
split-complementary
#4C2279 #797822 #237922
monochromatic
#100719 #2E1549 #4C2279 #6A2FA9 #8849CC

Accessibility & contrast

On white

11.59
#4C2279 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4C2279 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2279
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2279#FFFFFF#000000##FFFFFF
##4C22791.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#003877
Tritanopia (blue-blind)
#43364B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4c2279;
/* rgb */ color: rgb(76, 34, 121);
/* oklch */ color: oklch(36.0% 0.141 301.8);
Tailwind
colors: {
  custom: {
    50: '#8261a0',
    500: '#4c2279',
    950: '#000000',
  },
}
SCSS
$custom: #4c2279;
$custom-light: #8261a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2279",
  "rgb": {
    "r": 76,
    "g": 34,
    "b": 121
  },
  "hsl": {
    "h": 268.966,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36039,
    "c": 0.14077,
    "h": 301.8
  },
  "luminance": 0.04061
}

Semantic roles & 50–950 ramp

primary
#4C2279
secondary
#7DAC4B
accent
#DF4897
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #4C2279

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

Preview Lab → · Contrast checker → · Palette generator →

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