#4D379D#4D379D

#4D379D is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.3% C 0.158 H 287.6°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#4D379D
RGBrgb(77, 55, 157)
HSLhsl(253, 48%, 42%)
HSVhsv(253, 65%, 62%)
CMYKcmyk(51%, 65%, 0%, 38.4%)
CIE-LABlab(31.22, 36.47, -52.44)
CIE-LCHlch(31.22, 63.88, 304.82°)
OKLaboklab(42.26% 0.0476 -0.1503)
OKLCHoklch(42.26% 0.158 287.6)
XYZxyz(10.5108, 6.7440, 32.6396)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D379D #879D37
analogous
#37549D #4D379D #80379D
triadic
#4D379D #9D4D37 #379D4D
tetradic
#4D379D #9D3754 #879D37 #379D80
square
#4D379D #9D3754 #879D37 #379D80
split-complementary
#4D379D #9D8037 #549D37
monochromatic
#211742 #372770 #4D379D #6850C2 #8F7DD1

Accessibility & contrast

On white

8.94
#4D379D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#4D379D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D379D
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D379D#FFFFFF#000000##FFFFFF
##4D379D1.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA0
Deuteranopia (green-blind)
#00479B
Tritanopia (blue-blind)
#305065
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4d379d;
/* rgb */ color: rgb(77, 55, 157);
/* oklch */ color: oklch(42.3% 0.158 287.6);
Tailwind
colors: {
  custom: {
    50: '#866fbb',
    500: '#4d379d',
    950: '#000000',
  },
}
SCSS
$custom: #4d379d;
$custom-light: #866fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#4d379d",
  "rgb": {
    "r": 77,
    "g": 55,
    "b": 157
  },
  "hsl": {
    "h": 252.941,
    "s": 48.113,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42259,
    "c": 0.15767,
    "h": 287.6
  },
  "luminance": 0.06744
}

Semantic roles & 50–950 ramp

primary
#4D379D
secondary
#ACBB75
accent
#D850BA
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4D379D

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

Preview Lab → · Contrast checker → · Palette generator →

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