#4C3196#4C3196

#4C3196 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.6% C 0.157 H 289.9°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#4C3196
RGBrgb(76, 49, 150)
HSLhsl(256, 51%, 39%)
HSVhsv(256, 67%, 59%)
CMYKcmyk(49.3%, 67.3%, 0%, 41.2%)
CIE-LABlab(29.25, 37.68, -51.39)
CIE-LCHlch(29.25, 63.72, 306.25°)
OKLaboklab(40.63% 0.0533 -0.1472)
OKLCHoklch(40.63% 0.157 289.9)
XYZxyz(9.5823, 5.9348, 29.4889)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C3196 #7B9631
analogous
#314896 #4C3196 #7F3196
triadic
#4C3196 #964C31 #31964C
tetradic
#4C3196 #963148 #7B9631 #31967F
square
#4C3196 #963148 #7B9631 #31967F
split-complementary
#4C3196 #967F31 #489631
monochromatic
#1D133A #352268 #4C3196 #6543C1 #8A71D1

Accessibility & contrast

On white

9.60
#4C3196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4C3196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C3196
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C3196#FFFFFF#000000##FFFFFF
##4C31961.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004799
Deuteranopia (green-blind)
#004394
Tritanopia (blue-blind)
#344A5F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4c3196;
/* rgb */ color: rgb(76, 49, 150);
/* oklch */ color: oklch(40.6% 0.157 289.9);
Tailwind
colors: {
  custom: {
    50: '#856bb6',
    500: '#4c3196',
    950: '#000000',
  },
}
SCSS
$custom: #4c3196;
$custom-light: #856bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c3196",
  "rgb": {
    "r": 76,
    "g": 49,
    "b": 150
  },
  "hsl": {
    "h": 256.04,
    "s": 50.754,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40634,
    "c": 0.15658,
    "h": 289.9
  },
  "luminance": 0.05935
}

Semantic roles & 50–950 ramp

primary
#4C3196
secondary
#A4B86A
accent
#DA4EB5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4C3196

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

Preview Lab → · Contrast checker → · Palette generator →

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