#4C405E#4C405E

#4C405E is a dark, muted violet. Relative luminance 0.060; OKLCH L 39.6% C 0.052 H 302.4°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#4C405E
RGBrgb(76, 64, 94)
HSLhsl(264, 19%, 31%)
HSVhsv(264, 32%, 37%)
CMYKcmyk(19.1%, 31.9%, 0%, 63.1%)
CIE-LABlab(29.44, 12.04, -15.88)
CIE-LCHlch(29.44, 19.93, 307.17°)
OKLaboklab(39.64% 0.0278 -0.0437)
OKLCHoklch(39.64% 0.052 302.4)
XYZxyz(6.8339, 6.0114, 11.3878)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C405E #525E40
analogous
#40435E #4C405E #5B405E
triadic
#4C405E #5E4C40 #405E4C
tetradic
#4C405E #5E4043 #525E40 #405E5B
square
#4C405E #5E4043 #525E40 #405E5B
split-complementary
#4C405E #5E5B40 #435E40
monochromatic
#110E15 #2F273A #4C405E #695982 #8876A2

Accessibility & contrast

On white

9.54
#4C405E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4C405E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C405E
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C405E#FFFFFF#000000##FFFFFF
##4C405E1.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A455F
Deuteranopia (green-blind)
#3C455D
Tritanopia (blue-blind)
#49444B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4c405e;
/* rgb */ color: rgb(76, 64, 94);
/* oklch */ color: oklch(39.6% 0.052 302.4);
Tailwind
colors: {
  custom: {
    50: '#7e748b',
    500: '#4c405e',
    950: '#000000',
  },
}
SCSS
$custom: #4c405e;
$custom-light: #7e748b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c405e",
  "rgb": {
    "r": 76,
    "g": 64,
    "b": 94
  },
  "hsl": {
    "h": 264,
    "s": 18.987,
    "l": 30.98
  },
  "oklch": {
    "l": 0.39643,
    "c": 0.05175,
    "h": 302.4
  },
  "luminance": 0.06011
}

Semantic roles & 50–950 ramp

primary
#4C405E
secondary
#808D6C
accent
#BC6C9C
background
#F7F7F8
surface
#EEEDF0
border
#C9C8CB
text
#0A080C
muted
#7C7B7D

Preview Lab

Preview with #4C405E

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

Preview Lab → · Contrast checker → · Palette generator →

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