#4C337D#4C337D

#4C337D is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.0% C 0.121 H 295.9°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#4C337D
RGBrgb(76, 51, 125)
HSLhsl(260, 42%, 35%)
HSVhsv(260, 59%, 49%)
CMYKcmyk(39.2%, 59.2%, 0%, 51%)
CIE-LABlab(27.80, 29.07, -38.21)
CIE-LCHlch(27.80, 48.01, 307.27°)
OKLaboklab(38.98% 0.0527 -0.1085)
OKLCHoklch(38.98% 0.121 295.9)
XYZxyz(7.8650, 5.3847, 20.0230)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C337D #647D33
analogous
#333F7D #4C337D #71337D
triadic
#4C337D #7D4C33 #337D4C
tetradic
#4C337D #7D333F #647D33 #337D71
square
#4C337D #7D333F #647D33 #337D71
split-complementary
#4C337D #7D7133 #3F7D33
monochromatic
#171026 #322152 #4C337D #6645A8 #8769C2

Accessibility & contrast

On white

10.11
#4C337D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4C337D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C337D
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C337D#FFFFFF#000000##FFFFFF
##4C337D1.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C427F
Deuteranopia (green-blind)
#16417B
Tritanopia (blue-blind)
#404353
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4c337d;
/* rgb */ color: rgb(76, 51, 125);
/* oklch */ color: oklch(39.0% 0.121 295.9);
Tailwind
colors: {
  custom: {
    50: '#816ca3',
    500: '#4c337d',
    950: '#000000',
  },
}
SCSS
$custom: #4c337d;
$custom-light: #816ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c337d",
  "rgb": {
    "r": 76,
    "g": 51,
    "b": 125
  },
  "hsl": {
    "h": 260.27,
    "s": 42.045,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38984,
    "c": 0.1206,
    "h": 295.9
  },
  "luminance": 0.05385
}

Semantic roles & 50–950 ramp

primary
#4C337D
secondary
#91AA62
accent
#D256A8
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #4C337D

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

Preview Lab → · Contrast checker → · Palette generator →

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