#4C337A#4C337A

#4C337A is a dark, moderate violet. Relative luminance 0.053; OKLCH L 38.8% C 0.116 H 296.9°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#4C337A
RGBrgb(76, 51, 122)
HSLhsl(261, 41%, 34%)
HSVhsv(261, 58%, 48%)
CMYKcmyk(37.7%, 58.2%, 0%, 52.2%)
CIE-LABlab(27.60, 28.20, -36.65)
CIE-LCHlch(27.60, 46.25, 307.58°)
OKLaboklab(38.77% 0.0526 -0.1039)
OKLCHoklch(38.77% 0.116 296.9)
XYZxyz(7.6763, 5.3092, 19.0289)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C337A #617A33
analogous
#333E7A #4C337A #70337A
triadic
#4C337A #7A4C33 #337A4C
tetradic
#4C337A #7A333E #617A33 #337A70
square
#4C337A #7A333E #617A33 #337A70
split-complementary
#4C337A #7A7033 #3E7A33
monochromatic
#160F24 #31214F #4C337A #6745A5 #8768C0

Accessibility & contrast

On white

10.19
#4C337A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#4C337A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C337A
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C337A#FFFFFF#000000##FFFFFF
##4C337A1.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12417C
Deuteranopia (green-blind)
#1B4078
Tritanopia (blue-blind)
#414251
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4c337a;
/* rgb */ color: rgb(76, 51, 122);
/* oklch */ color: oklch(38.8% 0.116 296.9);
Tailwind
colors: {
  custom: {
    50: '#816ba1',
    500: '#4c337a',
    950: '#000000',
  },
}
SCSS
$custom: #4c337a;
$custom-light: #816ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c337a",
  "rgb": {
    "r": 76,
    "g": 51,
    "b": 122
  },
  "hsl": {
    "h": 261.127,
    "s": 41.04,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38767,
    "c": 0.11648,
    "h": 296.9
  },
  "luminance": 0.05309
}

Semantic roles & 50–950 ramp

primary
#4C337A
secondary
#8FA861
accent
#D157A6
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B070F
muted
#7C7A7E

Preview Lab

Preview with #4C337A

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

Preview Lab → · Contrast checker → · Palette generator →

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