#4D3199#4D3199

#4D3199 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.0% C 0.160 H 289.8°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#4D3199
RGBrgb(77, 49, 153)
HSLhsl(256, 51%, 40%)
HSVhsv(256, 68%, 60%)
CMYKcmyk(49.7%, 68%, 0%, 40%)
CIE-LABlab(29.60, 38.76, -52.64)
CIE-LCHlch(29.60, 65.38, 306.37°)
OKLaboklab(40.99% 0.0544 -0.1509)
OKLCHoklch(40.99% 0.16 289.8)
XYZxyz(9.9070, 6.0739, 30.7812)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D3199 #7D9931
analogous
#314999 #4D3199 #813199
triadic
#4D3199 #994D31 #31994D
tetradic
#4D3199 #993149 #7D9931 #319981
square
#4D3199 #993149 #7D9931 #319981
split-complementary
#4D3199 #998131 #499931
monochromatic
#1E133C #36226B #4D3199 #6644C3 #8C72D2

Accessibility & contrast

On white

9.48
#4D3199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4D3199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D3199
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D3199#FFFFFF#000000##FFFFFF
##4D31991.009.482.219.48
#FFFFFF9.481.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489C
Deuteranopia (green-blind)
#004397
Tritanopia (blue-blind)
#344B61
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4d3199;
/* rgb */ color: rgb(77, 49, 153);
/* oklch */ color: oklch(41.0% 0.160 289.8);
Tailwind
colors: {
  custom: {
    50: '#866bb8',
    500: '#4d3199',
    950: '#000000',
  },
}
SCSS
$custom: #4d3199;
$custom-light: #866bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#4d3199",
  "rgb": {
    "r": 77,
    "g": 49,
    "b": 153
  },
  "hsl": {
    "h": 256.154,
    "s": 51.485,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40988,
    "c": 0.16038,
    "h": 289.8
  },
  "luminance": 0.06074
}

Semantic roles & 50–950 ramp

primary
#4D3199
secondary
#A5BA6C
accent
#DB4DB5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4D3199

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

Preview Lab → · Contrast checker → · Palette generator →

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