#4C405C#4C405C

#4C405C is a dark, muted violet. Relative luminance 0.060; OKLCH L 39.5% C 0.049 H 303.9°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#4C405C
RGBrgb(76, 64, 92)
HSLhsl(266, 18%, 31%)
HSVhsv(266, 30%, 36%)
CMYKcmyk(17.4%, 30.4%, 0%, 63.9%)
CIE-LABlab(29.35, 11.53, -14.73)
CIE-LCHlch(29.35, 18.71, 308.04°)
OKLaboklab(39.55% 0.0271 -0.0404)
OKLCHoklch(39.55% 0.049 303.9)
XYZxyz(6.7453, 5.9760, 10.9213)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C405C #505C40
analogous
#40425C #4C405C #5A405C
triadic
#4C405C #5C4C40 #405C4C
tetradic
#4C405C #5C4042 #505C40 #405C5A
square
#4C405C #5C4042 #505C40 #405C5A
split-complementary
#4C405C #5C5A40 #425C40
monochromatic
#100E14 #2E2738 #4C405C #6A5980 #8876A0

Accessibility & contrast

On white

9.57
#4C405C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C405C
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C405C#FFFFFF#000000##FFFFFF
##4C405C1.009.572.209.57
#FFFFFF9.571.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B455D
Deuteranopia (green-blind)
#3D455B
Tritanopia (blue-blind)
#4A444A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4c405c;
/* rgb */ color: rgb(76, 64, 92);
/* oklch */ color: oklch(39.5% 0.049 303.9);
Tailwind
colors: {
  custom: {
    50: '#7e748a',
    500: '#4c405c',
    950: '#000000',
  },
}
SCSS
$custom: #4c405c;
$custom-light: #7e748a;
$custom-dark: #000000;
JSON
{
  "hex": "#4c405c",
  "rgb": {
    "r": 76,
    "g": 64,
    "b": 92
  },
  "hsl": {
    "h": 265.714,
    "s": 17.949,
    "l": 30.588
  },
  "oklch": {
    "l": 0.39545,
    "c": 0.04867,
    "h": 303.9
  },
  "luminance": 0.05976
}

Semantic roles & 50–950 ramp

primary
#4C405C
secondary
#7E8B6C
accent
#BB6D99
background
#F7F7F8
surface
#EEEDF0
border
#C9C8CB
text
#0A080B
muted
#7C7B7C

Preview Lab

Preview with #4C405C

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

Preview Lab → · Contrast checker → · Palette generator →

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