#4D3A97#4D3A97

#4D3A97 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.3% C 0.146 H 287.9°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#4D3A97
RGBrgb(77, 58, 151)
HSLhsl(252, 44%, 41%)
HSVhsv(252, 62%, 59%)
CMYKcmyk(49%, 61.6%, 0%, 40.8%)
CIE-LABlab(31.43, 32.82, -48.44)
CIE-LCHlch(31.43, 58.51, 304.12°)
OKLaboklab(42.27% 0.0448 -0.1385)
OKLCHoklch(42.27% 0.146 287.9)
XYZxyz(10.1579, 6.8378, 30.0568)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D3A97 #84973A
analogous
#3A5597 #4D3A97 #7B3A97
triadic
#4D3A97 #974D3A #3A974D
tetradic
#4D3A97 #973A55 #84973A #3A977B
square
#4D3A97 #973A55 #84973A #3A977B
split-complementary
#4D3A97 #977B3A #55973A
monochromatic
#20183F #36296B #4D3A97 #6852BC #8E7ECD

Accessibility & contrast

On white

8.87
#4D3A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#4D3A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D3A97
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D3A97#FFFFFF#000000##FFFFFF
##4D3A971.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#004895
Tritanopia (blue-blind)
#345063
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4d3a97;
/* rgb */ color: rgb(77, 58, 151);
/* oklch */ color: oklch(42.3% 0.146 287.9);
Tailwind
colors: {
  custom: {
    50: '#8571b6',
    500: '#4d3a97',
    950: '#000000',
  },
}
SCSS
$custom: #4d3a97;
$custom-light: #8571b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d3a97",
  "rgb": {
    "r": 77,
    "g": 58,
    "b": 151
  },
  "hsl": {
    "h": 252.258,
    "s": 44.498,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42271,
    "c": 0.14558,
    "h": 287.9
  },
  "luminance": 0.06838
}

Semantic roles & 50–950 ramp

primary
#4D3A97
secondary
#AAB776
accent
#D454BA
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4D3A97

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

Preview Lab → · Contrast checker → · Palette generator →

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