#4C407A#4C407A

#4C407A is a dark, moderate violet. Relative luminance 0.066; OKLCH L 41.2% C 0.095 H 291.2°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#4C407A
RGBrgb(76, 64, 122)
HSLhsl(252, 31%, 36%)
HSVhsv(252, 48%, 48%)
CMYKcmyk(37.7%, 47.5%, 0%, 52.2%)
CIE-LABlab(30.90, 19.91, -31.38)
CIE-LCHlch(30.90, 37.17, 302.39°)
OKLaboklab(41.23% 0.0343 -0.0885)
OKLCHoklch(41.23% 0.095 291.2)
XYZxyz(8.3258, 6.6082, 19.2454)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C407A #6E7A40
analogous
#40517A #4C407A #69407A
triadic
#4C407A #7A4C40 #407A4C
tetradic
#4C407A #7A4051 #6E7A40 #407A69
square
#4C407A #7A4051 #6E7A40 #407A69
split-complementary
#4C407A #7A6940 #517A40
monochromatic
#1A162A #332B52 #4C407A #6555A2 #887BBA

Accessibility & contrast

On white

9.05
#4C407A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#4C407A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C407A
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C407A#FFFFFF#000000##FFFFFF
##4C407A1.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4A7C
Deuteranopia (green-blind)
#2D4879
Tritanopia (blue-blind)
#404B57
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4c407a;
/* rgb */ color: rgb(76, 64, 122);
/* oklch */ color: oklch(41.2% 0.095 291.2);
Tailwind
colors: {
  custom: {
    50: '#8075a1',
    500: '#4c407a',
    950: '#000000',
  },
}
SCSS
$custom: #4c407a;
$custom-light: #8075a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c407a",
  "rgb": {
    "r": 76,
    "g": 64,
    "b": 122
  },
  "hsl": {
    "h": 252.414,
    "s": 31.183,
    "l": 36.471
  },
  "oklch": {
    "l": 0.41227,
    "c": 0.09487,
    "h": 291.2
  },
  "luminance": 0.06608
}

Semantic roles & 50–950 ramp

primary
#4C407A
secondary
#9AA472
accent
#C760B2
background
#F8F7F9
surface
#EFEDF2
border
#CAC8CC
text
#0A080F
muted
#7C7B7E

Preview Lab

Preview with #4C407A

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

Preview Lab → · Contrast checker → · Palette generator →

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