#4C3399#4C3399

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

Color values

HEX#4C3399
RGBrgb(76, 51, 153)
HSLhsl(255, 50%, 40%)
HSVhsv(255, 67%, 60%)
CMYKcmyk(50.3%, 66.7%, 0%, 40%)
CIE-LABlab(29.92, 37.42, -52.12)
CIE-LCHlch(29.92, 64.16, 305.67°)
OKLaboklab(41.2% 0.0508 -0.1494)
OKLCHoklch(41.2% 0.158 288.8)
XYZxyz(9.9124, 6.2036, 30.8059)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C3399 #809933
analogous
#334D99 #4C3399 #7F3399
triadic
#4C3399 #994C33 #33994C
tetradic
#4C3399 #99334D #809933 #33997F
square
#4C3399 #99334D #809933 #33997F
split-complementary
#4C3399 #997F33 #4D9933
monochromatic
#1E143D #35246B #4C3399 #6547C2 #8C75D1

Accessibility & contrast

On white

9.37
#4C3399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4C3399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C3399
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C3399#FFFFFF#000000##FFFFFF
##4C33991.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c3399;
/* rgb */ color: rgb(76, 51, 153);
/* oklch */ color: oklch(41.2% 0.158 288.8);
Tailwind
colors: {
  custom: {
    50: '#856cb8',
    500: '#4c3399',
    950: '#000000',
  },
}
SCSS
$custom: #4c3399;
$custom-light: #856cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#4c3399",
  "rgb": {
    "r": 76,
    "g": 51,
    "b": 153
  },
  "hsl": {
    "h": 254.706,
    "s": 50,
    "l": 40
  },
  "oklch": {
    "l": 0.41196,
    "c": 0.15781,
    "h": 288.8
  },
  "luminance": 0.06204
}

Semantic roles & 50–950 ramp

primary
#4C3399
secondary
#A7B96E
accent
#DA4EB7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4C3399

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

Preview Lab → · Contrast checker → · Palette generator →

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