#4C406A#4C406A

#4C406A is a dark, moderate violet. Relative luminance 0.062; OKLCH L 40.3% C 0.070 H 296.2°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#4C406A
RGBrgb(76, 64, 106)
HSLhsl(257, 25%, 33%)
HSVhsv(257, 40%, 42%)
CMYKcmyk(28.3%, 39.6%, 0%, 58.4%)
CIE-LABlab(30.02, 15.28, -22.67)
CIE-LCHlch(30.02, 27.34, 303.99°)
OKLaboklab(40.28% 0.0311 -0.0631)
OKLCHoklch(40.28% 0.07 296.2)
XYZxyz(7.4148, 6.2438, 14.4474)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C406A #5E6A40
analogous
#40496A #4C406A #61406A
triadic
#4C406A #6A4C40 #406A4C
tetradic
#4C406A #6A4049 #5E6A40 #406A61
square
#4C406A #6A4049 #5E6A40 #406A61
split-complementary
#4C406A #6A6140 #496A40
monochromatic
#15121E #312944 #4C406A #675790 #8777AD

Accessibility & contrast

On white

9.34
#4C406A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4C406A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C406A
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C406A#FFFFFF#000000##FFFFFF
##4C406A1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35476C
Deuteranopia (green-blind)
#374669
Tritanopia (blue-blind)
#464750
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4c406a;
/* rgb */ color: rgb(76, 64, 106);
/* oklch */ color: oklch(40.3% 0.070 296.2);
Tailwind
colors: {
  custom: {
    50: '#7f7595',
    500: '#4c406a',
    950: '#000000',
  },
}
SCSS
$custom: #4c406a;
$custom-light: #7f7595;
$custom-dark: #000000;
JSON
{
  "hex": "#4c406a",
  "rgb": {
    "r": 76,
    "g": 64,
    "b": 106
  },
  "hsl": {
    "h": 257.143,
    "s": 24.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.40275,
    "c": 0.07037,
    "h": 296.2
  },
  "luminance": 0.06244
}

Semantic roles & 50–950 ramp

primary
#4C406A
secondary
#8C986D
accent
#C167A7
background
#F7F7F9
surface
#EEEDF1
border
#C9C8CB
text
#0A080D
muted
#7C7B7E

Preview Lab

Preview with #4C406A

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

Preview Lab → · Contrast checker → · Palette generator →

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