#4D3399#4D3399

#4D3399 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.3% C 0.158 H 289.3°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#4D3399
RGBrgb(77, 51, 153)
HSLhsl(255, 50%, 40%)
HSVhsv(255, 67%, 60%)
CMYKcmyk(49.7%, 66.7%, 0%, 40%)
CIE-LABlab(30.02, 37.61, -51.95)
CIE-LCHlch(30.02, 64.14, 305.90°)
OKLaboklab(41.29% 0.0523 -0.1489)
OKLCHoklch(41.29% 0.158 289.3)
XYZxyz(9.9925, 6.2449, 30.8097)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D3399 #7F9933
analogous
#334C99 #4D3399 #803399
triadic
#4D3399 #994D33 #33994D
tetradic
#4D3399 #99334C #7F9933 #339980
square
#4D3399 #99334C #7F9933 #339980
split-complementary
#4D3399 #998033 #4C9933
monochromatic
#1F143D #36246B #4D3399 #6747C2 #8D75D1

Accessibility & contrast

On white

9.34
#4D3399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4D3399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D3399
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D3399#FFFFFF#000000##FFFFFF
##4D33991.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499C
Deuteranopia (green-blind)
#004497
Tritanopia (blue-blind)
#334C61
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4d3399;
/* rgb */ color: rgb(77, 51, 153);
/* oklch */ color: oklch(41.3% 0.158 289.3);
Tailwind
colors: {
  custom: {
    50: '#866cb8',
    500: '#4d3399',
    950: '#000000',
  },
}
SCSS
$custom: #4d3399;
$custom-light: #866cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#4d3399",
  "rgb": {
    "r": 77,
    "g": 51,
    "b": 153
  },
  "hsl": {
    "h": 255.294,
    "s": 50,
    "l": 40
  },
  "oklch": {
    "l": 0.41294,
    "c": 0.15778,
    "h": 289.3
  },
  "luminance": 0.06245
}

Semantic roles & 50–950 ramp

primary
#4D3399
secondary
#A6B96E
accent
#DA4EB6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4D3399

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

Preview Lab → · Contrast checker → · Palette generator →

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