#4C2A76#4C2A76

#4C2A76 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.0% C 0.125 H 301.0°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#4C2A76
RGBrgb(76, 42, 118)
HSLhsl(267, 48%, 31%)
HSVhsv(267, 64%, 46%)
CMYKcmyk(35.6%, 64.4%, 0%, 53.7%)
CIE-LABlab(25.26, 32.51, -37.87)
CIE-LCHlch(25.26, 49.91, 310.64°)
OKLaboklab(36.97% 0.0647 -0.1075)
OKLCHoklch(36.97% 0.125 301)
XYZxyz(7.0777, 4.5004, 17.6318)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2A76 #54762A
analogous
#2A2E76 #4C2A76 #722A76
triadic
#4C2A76 #764C2A #2A764C
tetradic
#4C2A76 #762A2E #54762A #2A7672
square
#4C2A76 #762A2E #54762A #2A7672
split-complementary
#4C2A76 #76722A #2E762A
monochromatic
#120A1C #2F1A49 #4C2A76 #693AA3 #8857C3

Accessibility & contrast

On white

11.05
#4C2A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4C2A76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2A76
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2A76#FFFFFF#000000##FFFFFF
##4C2A761.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B78
Deuteranopia (green-blind)
#103B74
Tritanopia (blue-blind)
#433A4C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4c2a76;
/* rgb */ color: rgb(76, 42, 118);
/* oklch */ color: oklch(37.0% 0.125 301.0);
Tailwind
colors: {
  custom: {
    50: '#81659e',
    500: '#4c2a76',
    950: '#000000',
  },
}
SCSS
$custom: #4c2a76;
$custom-light: #81659e;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2a76",
  "rgb": {
    "r": 76,
    "g": 42,
    "b": 118
  },
  "hsl": {
    "h": 266.842,
    "s": 47.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36967,
    "c": 0.12547,
    "h": 301
  },
  "luminance": 0.045
}

Semantic roles & 50–950 ramp

primary
#4C2A76
secondary
#82A854
accent
#D7519B
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #4C2A76

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

Preview Lab → · Contrast checker → · Palette generator →

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