#4C2C99#4C2C99

#4C2C99 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.2% C 0.167 H 290.3°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#4C2C99
RGBrgb(76, 44, 153)
HSLhsl(258, 55%, 39%)
HSVhsv(258, 71%, 60%)
CMYKcmyk(50.3%, 71.2%, 0%, 40%)
CIE-LABlab(28.48, 41.37, -54.48)
CIE-LCHlch(28.48, 68.40, 307.21°)
OKLaboklab(40.16% 0.0578 -0.1563)
OKLCHoklch(40.16% 0.167 290.3)
XYZxyz(9.6293, 5.6374, 30.7116)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2C99 #79992C
analogous
#2C4299 #4C2C99 #822C99
triadic
#4C2C99 #994C2C #2C994C
tetradic
#4C2C99 #992C42 #79992C #2C9982
square
#4C2C99 #992C42 #79992C #2C9982
split-complementary
#4C2C99 #99822C #42992C
monochromatic
#1D113A #341E69 #4C2C99 #643BC7 #8A6BD4

Accessibility & contrast

On white

9.87
#4C2C99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4C2C99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2C99
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2C99#FFFFFF#000000##FFFFFF
##4C2C991.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459C
Deuteranopia (green-blind)
#004197
Tritanopia (blue-blind)
#32485F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4c2c99;
/* rgb */ color: rgb(76, 44, 153);
/* oklch */ color: oklch(40.2% 0.167 290.3);
Tailwind
colors: {
  custom: {
    50: '#8668b8',
    500: '#4c2c99',
    950: '#000000',
  },
}
SCSS
$custom: #4c2c99;
$custom-light: #8668b8;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2c99",
  "rgb": {
    "r": 76,
    "g": 44,
    "b": 153
  },
  "hsl": {
    "h": 257.615,
    "s": 55.33,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40161,
    "c": 0.16665,
    "h": 290.3
  },
  "luminance": 0.05638
}

Semantic roles & 50–950 ramp

primary
#4C2C99
secondary
#A2BB66
accent
#DF49B3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4C2C99

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

Preview Lab → · Contrast checker → · Palette generator →

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