#4C3191#4C3191

#4C3191 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.2% C 0.150 H 291.1°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#4C3191
RGBrgb(76, 49, 145)
HSLhsl(257, 49%, 38%)
HSVhsv(257, 66%, 57%)
CMYKcmyk(47.6%, 66.2%, 0%, 43.1%)
CIE-LABlab(28.84, 36.19, -48.97)
CIE-LCHlch(28.84, 60.89, 306.46°)
OKLaboklab(40.22% 0.0539 -0.1401)
OKLCHoklch(40.22% 0.15 291.1)
XYZxyz(9.1882, 5.7771, 27.4136)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C3191 #769131
analogous
#314691 #4C3191 #7C3191
triadic
#4C3191 #914C31 #31914C
tetradic
#4C3191 #913146 #769131 #31917C
square
#4C3191 #913146 #769131 #31917C
split-complementary
#4C3191 #917C31 #469131
monochromatic
#1C1236 #342263 #4C3191 #6441BF #896ECE

Accessibility & contrast

On white

9.74
#4C3191 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4C3191 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C3191
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C3191#FFFFFF#000000##FFFFFF
##4C31911.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004694
Deuteranopia (green-blind)
#00428F
Tritanopia (blue-blind)
#37485C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4c3191;
/* rgb */ color: rgb(76, 49, 145);
/* oklch */ color: oklch(40.2% 0.150 291.1);
Tailwind
colors: {
  custom: {
    50: '#846bb2',
    500: '#4c3191',
    950: '#000000',
  },
}
SCSS
$custom: #4c3191;
$custom-light: #846bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c3191",
  "rgb": {
    "r": 76,
    "g": 49,
    "b": 145
  },
  "hsl": {
    "h": 256.875,
    "s": 49.485,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40215,
    "c": 0.15016,
    "h": 291.1
  },
  "luminance": 0.05777
}

Semantic roles & 50–950 ramp

primary
#4C3191
secondary
#A0B668
accent
#D94FB2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #4C3191

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

Preview Lab → · Contrast checker → · Palette generator →

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