#4D417E#4D417E

#4D417E is a dark, moderate violet. Relative luminance 0.069; OKLCH L 41.8% C 0.099 H 290.5°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#4D417E
RGBrgb(77, 65, 126)
HSLhsl(252, 32%, 37%)
HSVhsv(252, 48%, 49%)
CMYKcmyk(38.9%, 48.4%, 0%, 50.6%)
CIE-LABlab(31.50, 20.75, -32.93)
CIE-LCHlch(31.50, 38.92, 302.21°)
OKLaboklab(41.78% 0.0347 -0.0929)
OKLCHoklch(41.78% 0.099 290.5)
XYZxyz(8.7157, 6.8645, 20.6004)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D417E #727E41
analogous
#41547E #4D417E #6B417E
triadic
#4D417E #7E4D41 #417E4D
tetradic
#4D417E #7E4154 #727E41 #417E6B
square
#4D417E #7E4154 #727E41 #417E6B
split-complementary
#4D417E #7E6B41 #547E41
monochromatic
#1C172D #342C56 #4D417E #6656A6 #8A7DBC

Accessibility & contrast

On white

8.85
#4D417E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#4D417E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D417E
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D417E#FFFFFF#000000##FFFFFF
##4D417E1.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4B80
Deuteranopia (green-blind)
#2C497D
Tritanopia (blue-blind)
#404D59
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4d417e;
/* rgb */ color: rgb(77, 65, 126);
/* oklch */ color: oklch(41.8% 0.099 290.5);
Tailwind
colors: {
  custom: {
    50: '#8175a4',
    500: '#4d417e',
    950: '#000000',
  },
}
SCSS
$custom: #4d417e;
$custom-light: #8175a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d417e",
  "rgb": {
    "r": 77,
    "g": 65,
    "b": 126
  },
  "hsl": {
    "h": 251.803,
    "s": 31.937,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41778,
    "c": 0.09922,
    "h": 290.5
  },
  "luminance": 0.06865
}

Semantic roles & 50–950 ramp

primary
#4D417E
secondary
#9DA774
accent
#C860B4
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0A080F
muted
#7C7B7F

Preview Lab

Preview with #4D417E

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

Preview Lab → · Contrast checker → · Palette generator →

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