#4C407E#4C407E

#4C407E is a dark, moderate violet. Relative luminance 0.067; OKLCH L 41.5% C 0.101 H 290.2°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#4C407E
RGBrgb(76, 64, 126)
HSLhsl(252, 33%, 37%)
HSVhsv(252, 49%, 49%)
CMYKcmyk(39.7%, 49.2%, 0%, 50.6%)
CIE-LABlab(31.14, 21.11, -33.50)
CIE-LCHlch(31.14, 39.60, 302.22°)
OKLaboklab(41.48% 0.0348 -0.0947)
OKLCHoklch(41.48% 0.101 290.2)
XYZxyz(8.5788, 6.7094, 20.5777)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C407E #727E40
analogous
#40537E #4C407E #6B407E
triadic
#4C407E #7E4C40 #407E4C
tetradic
#4C407E #7E4053 #727E40 #407E6B
square
#4C407E #7E4053 #727E40 #407E6B
split-complementary
#4C407E #7E6B40 #537E40
monochromatic
#1B172D #342B55 #4C407E #6455A7 #887CBC

Accessibility & contrast

On white

8.97
#4C407E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#4C407E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C407E
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C407E#FFFFFF#000000##FFFFFF
##4C407E1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294A80
Deuteranopia (green-blind)
#2A487D
Tritanopia (blue-blind)
#3F4C59
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4c407e;
/* rgb */ color: rgb(76, 64, 126);
/* oklch */ color: oklch(41.5% 0.101 290.2);
Tailwind
colors: {
  custom: {
    50: '#8175a4',
    500: '#4c407e',
    950: '#000000',
  },
}
SCSS
$custom: #4c407e;
$custom-light: #8175a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c407e",
  "rgb": {
    "r": 76,
    "g": 64,
    "b": 126
  },
  "hsl": {
    "h": 251.613,
    "s": 32.632,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41484,
    "c": 0.10087,
    "h": 290.2
  },
  "luminance": 0.0671
}

Semantic roles & 50–950 ramp

primary
#4C407E
secondary
#9DA773
accent
#C95FB4
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0A080F
muted
#7C7B7F

Preview Lab

Preview with #4C407E

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

Preview Lab → · Contrast checker → · Palette generator →

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