#4C2D9C#4C2D9C

#4C2D9C is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.6% C 0.169 H 289.4°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#4C2D9C
RGBrgb(76, 45, 156)
HSLhsl(257, 55%, 39%)
HSVhsv(257, 71%, 61%)
CMYKcmyk(51.3%, 71.2%, 0%, 38.8%)
CIE-LABlab(28.94, 41.71, -55.56)
CIE-LCHlch(28.94, 69.47, 306.89°)
OKLaboklab(40.57% 0.0563 -0.1595)
OKLCHoklch(40.57% 0.169 289.4)
XYZxyz(9.9179, 5.8131, 32.0455)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2D9C #7D9C2D
analogous
#2D459C #4C2D9C #842D9C
triadic
#4C2D9C #9C4C2D #2D9C4C
tetradic
#4C2D9C #9C2D45 #7D9C2D #2D9C84
square
#4C2D9C #9C2D45 #7D9C2D #2D9C84
split-complementary
#4C2D9C #9C842D #459C2D
monochromatic
#1E123D #351F6D #4C2D9C #653FC8 #8B6ED5

Accessibility & contrast

On white

9.71
#4C2D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4C2D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2D9C
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2D9C#FFFFFF#000000##FFFFFF
##4C2D9C1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469F
Deuteranopia (green-blind)
#00419A
Tritanopia (blue-blind)
#304A61
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4c2d9c;
/* rgb */ color: rgb(76, 45, 156);
/* oklch */ color: oklch(40.6% 0.169 289.4);
Tailwind
colors: {
  custom: {
    50: '#8669ba',
    500: '#4c2d9c',
    950: '#000000',
  },
}
SCSS
$custom: #4c2d9c;
$custom-light: #8669ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2d9c",
  "rgb": {
    "r": 76,
    "g": 45,
    "b": 156
  },
  "hsl": {
    "h": 256.757,
    "s": 55.224,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40568,
    "c": 0.16913,
    "h": 289.4
  },
  "luminance": 0.05814
}

Semantic roles & 50–950 ramp

primary
#4C2D9C
secondary
#A5BC68
accent
#DF49B5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C2D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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