#4D338E#4D338E

#4D338E is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.4% C 0.143 H 291.9°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#4D338E
RGBrgb(77, 51, 142)
HSLhsl(257, 47%, 38%)
HSVhsv(257, 64%, 56%)
CMYKcmyk(45.8%, 64.1%, 0%, 44.3%)
CIE-LABlab(29.15, 34.32, -46.61)
CIE-LCHlch(29.15, 57.89, 306.36°)
OKLaboklab(40.39% 0.0534 -0.1332)
OKLCHoklch(40.39% 0.143 291.9)
XYZxyz(9.1255, 5.8981, 26.2436)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D338E #748E33
analogous
#33468E #4D338E #7A338E
triadic
#4D338E #8E4D33 #338E4D
tetradic
#4D338E #8E3346 #748E33 #338E7A
square
#4D338E #8E3346 #748E33 #338E7A
split-complementary
#4D338E #8E7A33 #468E33
monochromatic
#1C1334 #352361 #4D338E #6543BB #8A70CC

Accessibility & contrast

On white

9.63
#4D338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4D338E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D338E
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D338E#FFFFFF#000000##FFFFFF
##4D338E1.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#00438C
Tritanopia (blue-blind)
#3A485B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4d338e;
/* rgb */ color: rgb(77, 51, 142);
/* oklch */ color: oklch(40.4% 0.143 291.9);
Tailwind
colors: {
  custom: {
    50: '#846cb0',
    500: '#4d338e',
    950: '#000000',
  },
}
SCSS
$custom: #4d338e;
$custom-light: #846cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d338e",
  "rgb": {
    "r": 77,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 257.143,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40392,
    "c": 0.14348,
    "h": 291.9
  },
  "luminance": 0.05898
}

Semantic roles & 50–950 ramp

primary
#4D338E
secondary
#9EB469
accent
#D751B1
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4D338E

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

Preview Lab → · Contrast checker → · Palette generator →

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