#4D3799#4D3799

#4D3799 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 41.9% C 0.152 H 288.4°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#4D3799
RGBrgb(77, 55, 153)
HSLhsl(253, 47%, 41%)
HSVhsv(253, 64%, 60%)
CMYKcmyk(49.7%, 64.1%, 0%, 40%)
CIE-LABlab(30.90, 35.25, -50.52)
CIE-LCHlch(30.90, 61.61, 304.90°)
OKLaboklab(41.93% 0.048 -0.1447)
OKLCHoklch(41.93% 0.152 288.4)
XYZxyz(10.1749, 6.6096, 30.8705)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D3799 #839937
analogous
#375299 #4D3799 #7E3799
triadic
#4D3799 #994D37 #37994D
tetradic
#4D3799 #993752 #839937 #37997E
square
#4D3799 #993752 #839937 #37997E
split-complementary
#4D3799 #997E37 #529937
monochromatic
#20173F #36276C #4D3799 #674EBF #8E7BD0

Accessibility & contrast

On white

9.04
#4D3799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#4D3799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D3799
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D3799#FFFFFF#000000##FFFFFF
##4D37991.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9C
Deuteranopia (green-blind)
#004697
Tritanopia (blue-blind)
#334E63
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4d3799;
/* rgb */ color: rgb(77, 55, 153);
/* oklch */ color: oklch(41.9% 0.152 288.4);
Tailwind
colors: {
  custom: {
    50: '#856fb8',
    500: '#4d3799',
    950: '#000000',
  },
}
SCSS
$custom: #4d3799;
$custom-light: #856fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#4d3799",
  "rgb": {
    "r": 77,
    "g": 55,
    "b": 153
  },
  "hsl": {
    "h": 253.469,
    "s": 47.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.4193,
    "c": 0.15241,
    "h": 288.4
  },
  "luminance": 0.0661
}

Semantic roles & 50–950 ramp

primary
#4D3799
secondary
#A9B973
accent
#D751B9
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4D3799

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

Preview Lab → · Contrast checker → · Palette generator →

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