#4D408D#4D408D

#4D408D is a dark, vivid violet. Relative luminance 0.072; OKLCH L 42.6% C 0.123 H 287.8°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#4D408D
RGBrgb(77, 64, 141)
HSLhsl(250, 38%, 40%)
HSVhsv(250, 55%, 55%)
CMYKcmyk(45.4%, 54.6%, 0%, 44.7%)
CIE-LABlab(32.18, 25.97, -41.11)
CIE-LCHlch(32.18, 48.62, 302.28°)
OKLaboklab(42.6% 0.0375 -0.1169)
OKLCHoklch(42.6% 0.123 287.8)
XYZxyz(9.7003, 7.1673, 26.0665)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D408D #808D40
analogous
#40598D #4D408D #73408D
triadic
#4D408D #8D4D40 #408D4D
tetradic
#4D408D #8D4059 #808D40 #408D73
square
#4D408D #8D4059 #808D40 #408D73
split-complementary
#4D408D #8D7340 #598D40
monochromatic
#1F1A39 #362D63 #4D408D #6757B3 #8D81C6

Accessibility & contrast

On white

8.63
#4D408D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#4D408D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D408D
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D408D#FFFFFF#000000##FFFFFF
##4D408D1.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4E90
Deuteranopia (green-blind)
#1B4A8B
Tritanopia (blue-blind)
#3A5060
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4d408d;
/* rgb */ color: rgb(77, 64, 141);
/* oklch */ color: oklch(42.6% 0.123 287.8);
Tailwind
colors: {
  custom: {
    50: '#8375af',
    500: '#4d408d',
    950: '#000000',
  },
}
SCSS
$custom: #4d408d;
$custom-light: #8375af;
$custom-dark: #000000;
JSON
{
  "hex": "#4d408d",
  "rgb": {
    "r": 77,
    "g": 64,
    "b": 141
  },
  "hsl": {
    "h": 250.13,
    "s": 37.561,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42599,
    "c": 0.12282,
    "h": 287.8
  },
  "luminance": 0.07168
}

Semantic roles & 50–950 ramp

primary
#4D408D
secondary
#A7B078
accent
#CE5ABA
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #4D408D

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

Preview Lab → · Contrast checker → · Palette generator →

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