#4D337E#4D337E

#4D337E is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.2% C 0.122 H 296.3°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#4D337E
RGBrgb(77, 51, 126)
HSLhsl(261, 42%, 35%)
HSVhsv(261, 60%, 49%)
CMYKcmyk(38.9%, 59.5%, 0%, 50.6%)
CIE-LABlab(27.98, 29.62, -38.54)
CIE-LCHlch(27.98, 48.61, 307.54°)
OKLaboklab(39.17% 0.0541 -0.1094)
OKLCHoklch(39.17% 0.122 296.3)
XYZxyz(8.0093, 5.4517, 20.3649)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D337E #647E33
analogous
#333F7E #4D337E #73337E
triadic
#4D337E #7E4D33 #337E4D
tetradic
#4D337E #7E333F #647E33 #337E73
square
#4D337E #7E333F #647E33 #337E73
split-complementary
#4D337E #7E7333 #3F7E33
monochromatic
#181027 #322152 #4D337E #6845AA #8869C2

Accessibility & contrast

On white

10.05
#4D337E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4D337E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D337E
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D337E#FFFFFF#000000##FFFFFF
##4D337E1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4280
Deuteranopia (green-blind)
#16417C
Tritanopia (blue-blind)
#414353
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4d337e;
/* rgb */ color: rgb(77, 51, 126);
/* oklch */ color: oklch(39.2% 0.122 296.3);
Tailwind
colors: {
  custom: {
    50: '#826ca4',
    500: '#4d337e',
    950: '#000000',
  },
}
SCSS
$custom: #4d337e;
$custom-light: #826ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d337e",
  "rgb": {
    "r": 77,
    "g": 51,
    "b": 126
  },
  "hsl": {
    "h": 260.8,
    "s": 42.373,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39166,
    "c": 0.12207,
    "h": 296.3
  },
  "luminance": 0.05452
}

Semantic roles & 50–950 ramp

primary
#4D337E
secondary
#91AA63
accent
#D256A7
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #4D337E

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

Preview Lab → · Contrast checker → · Palette generator →

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