#4D407B#4D407B

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

Color values

HEX#4D407B
RGBrgb(77, 64, 123)
HSLhsl(253, 32%, 37%)
HSVhsv(253, 48%, 48%)
CMYKcmyk(37.4%, 48%, 0%, 51.8%)
CIE-LABlab(31.05, 20.50, -31.76)
CIE-LCHlch(31.05, 37.80, 302.84°)
OKLaboklab(41.39% 0.0357 -0.0895)
OKLCHoklch(41.39% 0.096 291.8)
XYZxyz(8.4682, 6.6744, 19.5772)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D407B #6E7B40
analogous
#40517B #4D407B #6B407B
triadic
#4D407B #7B4D40 #407B4D
tetradic
#4D407B #7B4051 #6E7B40 #407B6B
square
#4D407B #7B4051 #6E7B40 #407B6B
split-complementary
#4D407B #7B6B40 #517B40
monochromatic
#1B162A #342B53 #4D407B #6655A3 #897BBA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4D407B#FFFFFF#000000##FFFFFF
##4D407B1.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)
#2C4A7D
Deuteranopia (green-blind)
#2D487A
Tritanopia (blue-blind)
#424B57
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4d407b;
/* rgb */ color: rgb(77, 64, 123);
/* oklch */ color: oklch(41.4% 0.096 291.8);
Tailwind
colors: {
  custom: {
    50: '#8175a1',
    500: '#4d407b',
    950: '#000000',
  },
}
SCSS
$custom: #4d407b;
$custom-light: #8175a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d407b",
  "rgb": {
    "r": 77,
    "g": 64,
    "b": 123
  },
  "hsl": {
    "h": 253.22,
    "s": 31.551,
    "l": 36.667
  },
  "oklch": {
    "l": 0.41388,
    "c": 0.09639,
    "h": 291.8
  },
  "luminance": 0.06675
}

Semantic roles & 50–950 ramp

primary
#4D407B
secondary
#9AA572
accent
#C860B1
background
#F8F7FA
surface
#EFEDF3
border
#CAC8CD
text
#0A080F
muted
#7C7B7F

Preview Lab

Preview with #4D407B

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

Preview Lab → · Contrast checker → · Palette generator →

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