#4C3386#4C3386

#4C3386 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.7% C 0.133 H 293.3°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#4C3386
RGBrgb(76, 51, 134)
HSLhsl(258, 45%, 36%)
HSVhsv(258, 62%, 53%)
CMYKcmyk(43.3%, 61.9%, 0%, 47.5%)
CIE-LABlab(28.45, 31.72, -42.81)
CIE-LCHlch(28.45, 53.28, 306.54°)
OKLaboklab(39.66% 0.0525 -0.122)
OKLCHoklch(39.66% 0.133 293.3)
XYZxyz(8.4662, 5.6252, 23.1893)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C3386 #6D8633
analogous
#334486 #4C3386 #763386
triadic
#4C3386 #864C33 #33864C
tetradic
#4C3386 #863344 #6D8633 #338676
square
#4C3386 #863344 #6D8633 #338676
split-complementary
#4C3386 #867633 #448633
monochromatic
#1A112D #33225A #4C3386 #6544B2 #886CC7

Accessibility & contrast

On white

9.88
#4C3386 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4C3386 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C3386
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C3386#FFFFFF#000000##FFFFFF
##4C33861.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004489
Deuteranopia (green-blind)
#024284
Tritanopia (blue-blind)
#3C4557
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4c3386;
/* rgb */ color: rgb(76, 51, 134);
/* oklch */ color: oklch(39.7% 0.133 293.3);
Tailwind
colors: {
  custom: {
    50: '#836caa',
    500: '#4c3386',
    950: '#000000',
  },
}
SCSS
$custom: #4c3386;
$custom-light: #836caa;
$custom-dark: #000000;
JSON
{
  "hex": "#4c3386",
  "rgb": {
    "r": 76,
    "g": 51,
    "b": 134
  },
  "hsl": {
    "h": 258.072,
    "s": 44.865,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39661,
    "c": 0.13281,
    "h": 293.3
  },
  "luminance": 0.05625
}

Semantic roles & 50–950 ramp

primary
#4C3386
secondary
#99AF66
accent
#D553AE
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4C3386

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

Preview Lab → · Contrast checker → · Palette generator →

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