#4C3897#4C3897

#4C3897 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 41.8% C 0.148 H 287.9°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#4C3897
RGBrgb(76, 56, 151)
HSLhsl(253, 46%, 41%)
HSVhsv(253, 63%, 59%)
CMYKcmyk(49.7%, 62.9%, 0%, 40.8%)
CIE-LABlab(30.88, 33.83, -49.35)
CIE-LCHlch(30.88, 59.83, 304.43°)
OKLaboklab(41.84% 0.0456 -0.1412)
OKLCHoklch(41.84% 0.148 287.9)
XYZxyz(9.9790, 6.5988, 30.0200)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C3897 #839738
analogous
#385397 #4C3897 #7C3897
triadic
#4C3897 #974C38 #38974C
tetradic
#4C3897 #973853 #839738 #38977C
square
#4C3897 #973853 #839738 #38977C
split-complementary
#4C3897 #977C38 #539738
monochromatic
#1F173E #36276A #4C3897 #664FBE #8D7BCE

Accessibility & contrast

On white

9.05
#4C3897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#4C3897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C3897
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C3897#FFFFFF#000000##FFFFFF
##4C38971.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#004695
Tritanopia (blue-blind)
#324E62
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4c3897;
/* rgb */ color: rgb(76, 56, 151);
/* oklch */ color: oklch(41.8% 0.148 287.9);
Tailwind
colors: {
  custom: {
    50: '#846fb6',
    500: '#4c3897',
    950: '#000000',
  },
}
SCSS
$custom: #4c3897;
$custom-light: #846fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c3897",
  "rgb": {
    "r": 76,
    "g": 56,
    "b": 151
  },
  "hsl": {
    "h": 252.632,
    "s": 45.894,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41839,
    "c": 0.14843,
    "h": 287.9
  },
  "luminance": 0.06599
}

Semantic roles & 50–950 ramp

primary
#4C3897
secondary
#A9B773
accent
#D652BA
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #4C3897

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

Preview Lab → · Contrast checker → · Palette generator →

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