#4C2276#4C2276

#4C2276 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.8% C 0.137 H 302.9°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#4C2276
RGBrgb(76, 34, 118)
HSLhsl(270, 55%, 30%)
HSVhsv(270, 71%, 46%)
CMYKcmyk(35.6%, 71.2%, 0%, 53.7%)
CIE-LABlab(23.63, 36.95, -40.50)
CIE-LCHlch(23.63, 54.83, 312.38°)
OKLaboklab(35.79% 0.0746 -0.1152)
OKLCHoklch(35.79% 0.137 302.9)
XYZxyz(6.8218, 3.9886, 17.5465)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2276 #4C7622
analogous
#222276 #4C2276 #762276
triadic
#4C2276 #764C22 #22764C
tetradic
#4C2276 #762222 #4C7622 #227676
square
#4C2276 #762222 #4C7622 #227676
split-complementary
#4C2276 #767622 #227622
monochromatic
#0F0718 #2D1446 #4C2276 #6B30A6 #8948CA

Accessibility & contrast

On white

11.68
#4C2276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4C2276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2276
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2276#FFFFFF#000000##FFFFFF
##4C22761.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003779
Deuteranopia (green-blind)
#003874
Tritanopia (blue-blind)
#443549
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4c2276;
/* rgb */ color: rgb(76, 34, 118);
/* oklch */ color: oklch(35.8% 0.137 302.9);
Tailwind
colors: {
  custom: {
    50: '#82609e',
    500: '#4c2276',
    950: '#000000',
  },
}
SCSS
$custom: #4c2276;
$custom-light: #82609e;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2276",
  "rgb": {
    "r": 76,
    "g": 34,
    "b": 118
  },
  "hsl": {
    "h": 270,
    "s": 55.263,
    "l": 29.804
  },
  "oklch": {
    "l": 0.35794,
    "c": 0.13723,
    "h": 302.9
  },
  "luminance": 0.03989
}

Semantic roles & 50–950 ramp

primary
#4C2276
secondary
#7AA94B
accent
#DF4994
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4C2276

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

Preview Lab → · Contrast checker → · Palette generator →

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