#4D399D#4D399D

#4D399D is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.6% C 0.155 H 287.1°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#4D399D
RGBrgb(77, 57, 157)
HSLhsl(252, 47%, 42%)
HSVhsv(252, 64%, 62%)
CMYKcmyk(51%, 63.7%, 0%, 38.4%)
CIE-LABlab(31.67, 35.28, -51.72)
CIE-LCHlch(31.67, 62.60, 304.30°)
OKLaboklab(42.59% 0.0455 -0.1482)
OKLCHoklch(42.59% 0.155 287.1)
XYZxyz(10.6077, 6.9379, 32.6720)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D399D #899D39
analogous
#39579D #4D399D #7F399D
triadic
#4D399D #9D4D39 #399D4D
tetradic
#4D399D #9D3957 #899D39 #399D7F
square
#4D399D #9D3957 #899D39 #399D7F
split-complementary
#4D399D #9D7F39 #579D39
monochromatic
#211843 #372970 #4D399D #6953C0 #9080D1

Accessibility & contrast

On white

8.80
#4D399D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#4D399D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D399D
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D399D#FFFFFF#000000##FFFFFF
##4D399D1.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA0
Deuteranopia (green-blind)
#00489B
Tritanopia (blue-blind)
#305165
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4d399d;
/* rgb */ color: rgb(77, 57, 157);
/* oklch */ color: oklch(42.6% 0.155 287.1);
Tailwind
colors: {
  custom: {
    50: '#8670bb',
    500: '#4d399d',
    950: '#000000',
  },
}
SCSS
$custom: #4d399d;
$custom-light: #8670bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4d399d",
  "rgb": {
    "r": 77,
    "g": 57,
    "b": 157
  },
  "hsl": {
    "h": 252,
    "s": 46.729,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42585,
    "c": 0.15498,
    "h": 287.1
  },
  "luminance": 0.06938
}

Semantic roles & 50–950 ramp

primary
#4D399D
secondary
#ADBA78
accent
#D651BC
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4D399D

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

Preview Lab → · Contrast checker → · Palette generator →

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