#4D338A#4D338A

#4D338A is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.1% C 0.138 H 292.9°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#4D338A
RGBrgb(77, 51, 138)
HSLhsl(258, 46%, 37%)
HSVhsv(258, 63%, 54%)
CMYKcmyk(44.2%, 63%, 0%, 45.9%)
CIE-LABlab(28.85, 33.13, -44.63)
CIE-LCHlch(28.85, 55.59, 306.59°)
OKLaboklab(40.08% 0.0537 -0.1273)
OKLCHoklch(40.08% 0.138 292.9)
XYZxyz(8.8306, 5.7802, 24.6902)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D338A #708A33
analogous
#33458A #4D338A #79338A
triadic
#4D338A #8A4D33 #338A4D
tetradic
#4D338A #8A3345 #708A33 #338A79
square
#4D338A #8A3345 #708A33 #338A79
split-complementary
#4D338A #8A7933 #458A33
monochromatic
#1B1231 #34225D #4D338A #6644B7 #896EC9

Accessibility & contrast

On white

9.74
#4D338A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4D338A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D338A
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D338A#FFFFFF#000000##FFFFFF
##4D338A1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#004288
Tritanopia (blue-blind)
#3C4759
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4d338a;
/* rgb */ color: rgb(77, 51, 138);
/* oklch */ color: oklch(40.1% 0.138 292.9);
Tailwind
colors: {
  custom: {
    50: '#846cad',
    500: '#4d338a',
    950: '#000000',
  },
}
SCSS
$custom: #4d338a;
$custom-light: #846cad;
$custom-dark: #000000;
JSON
{
  "hex": "#4d338a",
  "rgb": {
    "r": 77,
    "g": 51,
    "b": 138
  },
  "hsl": {
    "h": 257.931,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40075,
    "c": 0.13819,
    "h": 292.9
  },
  "luminance": 0.0578
}

Semantic roles & 50–950 ramp

primary
#4D338A
secondary
#9BB167
accent
#D652AE
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4D338A

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

Preview Lab → · Contrast checker → · Palette generator →

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