#4D388F#4D388F

#4D388F is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.3% C 0.138 H 290.2°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#4D388F
RGBrgb(77, 56, 143)
HSLhsl(254, 44%, 39%)
HSVhsv(254, 61%, 56%)
CMYKcmyk(46.2%, 60.8%, 0%, 43.9%)
CIE-LABlab(30.37, 31.60, -45.26)
CIE-LCHlch(30.37, 55.19, 304.92°)
OKLaboklab(41.31% 0.0475 -0.1292)
OKLCHoklch(41.31% 0.138 290.2)
XYZxyz(9.4313, 6.3890, 26.7175)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D388F #7A8F38
analogous
#384F8F #4D388F #79388F
triadic
#4D388F #8F4D38 #388F4D
tetradic
#4D388F #8F384F #7A8F38 #388F79
square
#4D388F #8F384F #7A8F38 #388F79
split-complementary
#4D388F #8F7938 #4F8F38
monochromatic
#1E1637 #352763 #4D388F #664BB9 #8B77CA

Accessibility & contrast

On white

9.22
#4D388F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4D388F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D388F
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D388F#FFFFFF#000000##FFFFFF
##4D388F1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004992
Deuteranopia (green-blind)
#00468D
Tritanopia (blue-blind)
#394C5E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4d388f;
/* rgb */ color: rgb(77, 56, 143);
/* oklch */ color: oklch(41.3% 0.138 290.2);
Tailwind
colors: {
  custom: {
    50: '#846fb0',
    500: '#4d388f',
    950: '#000000',
  },
}
SCSS
$custom: #4d388f;
$custom-light: #846fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d388f",
  "rgb": {
    "r": 77,
    "g": 56,
    "b": 143
  },
  "hsl": {
    "h": 254.483,
    "s": 43.719,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41306,
    "c": 0.13761,
    "h": 290.2
  },
  "luminance": 0.06389
}

Semantic roles & 50–950 ramp

primary
#4D388F
secondary
#A3B370
accent
#D354B5
background
#F8F6FA
surface
#EFECF5
border
#CAC7CF
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #4D388F

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

Preview Lab → · Contrast checker → · Palette generator →

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