#4C407D#4C407D

#4C407D is a dark, moderate violet. Relative luminance 0.067; OKLCH L 41.4% C 0.099 H 290.4°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#4C407D
RGBrgb(76, 64, 125)
HSLhsl(252, 32%, 37%)
HSVhsv(252, 49%, 49%)
CMYKcmyk(39.2%, 48.8%, 0%, 51%)
CIE-LABlab(31.08, 20.81, -32.98)
CIE-LCHlch(31.08, 38.99, 302.26°)
OKLaboklab(41.42% 0.0347 -0.0931)
OKLCHoklch(41.42% 0.099 290.4)
XYZxyz(8.5146, 6.6837, 20.2395)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C407D #717D40
analogous
#40537D #4C407D #6B407D
triadic
#4C407D #7D4C40 #407D4C
tetradic
#4C407D #7D4053 #717D40 #407D6B
square
#4C407D #7D4053 #717D40 #407D6B
split-complementary
#4C407D #7D6B40 #537D40
monochromatic
#1B172C #332B55 #4C407D #6555A5 #887CBC

Accessibility & contrast

On white

8.99
#4C407D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C407D
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C407D#FFFFFF#000000##FFFFFF
##4C407D1.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4A7F
Deuteranopia (green-blind)
#2B487C
Tritanopia (blue-blind)
#3F4C58
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4c407d;
/* rgb */ color: rgb(76, 64, 125);
/* oklch */ color: oklch(41.4% 0.099 290.4);
Tailwind
colors: {
  custom: {
    50: '#8175a3',
    500: '#4c407d',
    950: '#000000',
  },
}
SCSS
$custom: #4c407d;
$custom-light: #8175a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c407d",
  "rgb": {
    "r": 76,
    "g": 64,
    "b": 125
  },
  "hsl": {
    "h": 251.803,
    "s": 32.275,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41419,
    "c": 0.09937,
    "h": 290.4
  },
  "luminance": 0.06684
}

Semantic roles & 50–950 ramp

primary
#4C407D
secondary
#9CA673
accent
#C85FB4
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0A080F
muted
#7C7B7F

Preview Lab

Preview with #4C407D

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

Preview Lab → · Contrast checker → · Palette generator →

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