#4D3198#4D3198

#4D3198 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.9% C 0.159 H 290.0°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#4D3198
RGBrgb(77, 49, 152)
HSLhsl(256, 51%, 39%)
HSVhsv(256, 68%, 60%)
CMYKcmyk(49.3%, 67.8%, 0%, 40.4%)
CIE-LABlab(29.52, 38.47, -52.17)
CIE-LCHlch(29.52, 64.82, 306.40°)
OKLaboklab(40.9% 0.0545 -0.1495)
OKLCHoklch(40.9% 0.159 290)
XYZxyz(9.8248, 6.0410, 30.3480)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D3198 #7C9831
analogous
#314898 #4D3198 #813198
triadic
#4D3198 #984D31 #31984D
tetradic
#4D3198 #983148 #7C9831 #319881
square
#4D3198 #983148 #7C9831 #319881
split-complementary
#4D3198 #988131 #489831
monochromatic
#1E133B #36226A #4D3198 #6644C3 #8C72D2

Accessibility & contrast

On white

9.51
#4D3198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D3198
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D3198#FFFFFF#000000##FFFFFF
##4D31981.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479B
Deuteranopia (green-blind)
#004396
Tritanopia (blue-blind)
#344A60
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4d3198;
/* rgb */ color: rgb(77, 49, 152);
/* oklch */ color: oklch(40.9% 0.159 290.0);
Tailwind
colors: {
  custom: {
    50: '#866bb7',
    500: '#4d3198',
    950: '#000000',
  },
}
SCSS
$custom: #4d3198;
$custom-light: #866bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d3198",
  "rgb": {
    "r": 77,
    "g": 49,
    "b": 152
  },
  "hsl": {
    "h": 256.311,
    "s": 51.244,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40903,
    "c": 0.15911,
    "h": 290
  },
  "luminance": 0.06041
}

Semantic roles & 50–950 ramp

primary
#4D3198
secondary
#A4B96B
accent
#DB4DB4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4D3198

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

Preview Lab → · Contrast checker → · Palette generator →

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