#4C407B#4C407B

#4C407B is a dark, moderate violet. Relative luminance 0.066; OKLCH L 41.3% C 0.096 H 290.9°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#4C407B
RGBrgb(76, 64, 123)
HSLhsl(252, 32%, 37%)
HSVhsv(252, 48%, 48%)
CMYKcmyk(38.2%, 48%, 0%, 51.8%)
CIE-LABlab(30.96, 20.21, -31.92)
CIE-LCHlch(30.96, 37.78, 302.34°)
OKLaboklab(41.29% 0.0344 -0.09)
OKLCHoklch(41.29% 0.096 290.9)
XYZxyz(8.3881, 6.6331, 19.5734)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C407B #6F7B40
analogous
#40527B #4C407B #6A407B
triadic
#4C407B #7B4C40 #407B4C
tetradic
#4C407B #7B4052 #6F7B40 #407B6A
square
#4C407B #7B4052 #6F7B40 #407B6A
split-complementary
#4C407B #7B6A40 #527B40
monochromatic
#1A162A #332B53 #4C407B #6555A3 #887BBA

Accessibility & contrast

On white

9.03
#4C407B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#4C407B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C407B
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C407B#FFFFFF#000000##FFFFFF
##4C407B1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c407b;
/* rgb */ color: rgb(76, 64, 123);
/* oklch */ color: oklch(41.3% 0.096 290.9);
Tailwind
colors: {
  custom: {
    50: '#8075a1',
    500: '#4c407b',
    950: '#000000',
  },
}
SCSS
$custom: #4c407b;
$custom-light: #8075a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c407b",
  "rgb": {
    "r": 76,
    "g": 64,
    "b": 123
  },
  "hsl": {
    "h": 252.203,
    "s": 31.551,
    "l": 36.667
  },
  "oklch": {
    "l": 0.41291,
    "c": 0.09637,
    "h": 290.9
  },
  "luminance": 0.06633
}

Semantic roles & 50–950 ramp

primary
#4C407B
secondary
#9BA572
accent
#C860B3
background
#F8F7FA
surface
#EFEDF3
border
#CAC8CD
text
#0A080F
muted
#7C7B7F

Preview Lab

Preview with #4C407B

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

Preview Lab → · Contrast checker → · Palette generator →

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