#4D4185#4D4185

#4D4185 is a dark, moderate violet. Relative luminance 0.071; OKLCH L 42.2% C 0.110 H 288.9°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#4D4185
RGBrgb(77, 65, 133)
HSLhsl(251, 34%, 39%)
HSVhsv(251, 51%, 52%)
CMYKcmyk(42.1%, 51.1%, 0%, 47.8%)
CIE-LABlab(31.92, 22.87, -36.59)
CIE-LCHlch(31.92, 43.15, 302.00°)
OKLaboklab(42.24% 0.0356 -0.1037)
OKLCHoklch(42.24% 0.11 288.9)
XYZxyz(9.1833, 7.0515, 23.0630)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D4185 #798541
analogous
#415785 #4D4185 #6F4185
triadic
#4D4185 #854D41 #41854D
tetradic
#4D4185 #854157 #798541 #41856F
square
#4D4185 #854157 #798541 #41856F
split-complementary
#4D4185 #856F41 #578541
monochromatic
#1D1933 #352D5C #4D4185 #6657AD #8B80C1

Accessibility & contrast

On white

8.71
#4D4185 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#4D4185 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D4185
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D4185#FFFFFF#000000##FFFFFF
##4D41851.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254D87
Deuteranopia (green-blind)
#264983
Tritanopia (blue-blind)
#3D4F5C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4d4185;
/* rgb */ color: rgb(77, 65, 133);
/* oklch */ color: oklch(42.2% 0.110 288.9);
Tailwind
colors: {
  custom: {
    50: '#8276a9',
    500: '#4d4185',
    950: '#000000',
  },
}
SCSS
$custom: #4d4185;
$custom-light: #8276a9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d4185",
  "rgb": {
    "r": 77,
    "g": 65,
    "b": 133
  },
  "hsl": {
    "h": 250.588,
    "s": 34.343,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42238,
    "c": 0.10961,
    "h": 288.9
  },
  "luminance": 0.07052
}

Semantic roles & 50–950 ramp

primary
#4D4185
secondary
#A2AB76
accent
#CA5DB7
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #4D4185

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

Preview Lab → · Contrast checker → · Palette generator →

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