#4C337E#4C337E

#4C337E is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.1% C 0.122 H 295.6°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#4C337E
RGBrgb(76, 51, 126)
HSLhsl(260, 42%, 35%)
HSVhsv(260, 60%, 49%)
CMYKcmyk(39.7%, 59.5%, 0%, 50.6%)
CIE-LABlab(27.87, 29.36, -38.73)
CIE-LCHlch(27.87, 48.60, 307.17°)
OKLaboklab(39.06% 0.0527 -0.11)
OKLCHoklch(39.06% 0.122 295.6)
XYZxyz(7.9292, 5.4104, 20.3612)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C337E #657E33
analogous
#33407E #4C337E #72337E
triadic
#4C337E #7E4C33 #337E4C
tetradic
#4C337E #7E3340 #657E33 #337E72
square
#4C337E #7E3340 #657E33 #337E72
split-complementary
#4C337E #7E7233 #407E33
monochromatic
#171027 #322152 #4C337E #6645AA #8769C2

Accessibility & contrast

On white

10.09
#4C337E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C337E
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C337E#FFFFFF#000000##FFFFFF
##4C337E1.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A4280
Deuteranopia (green-blind)
#15417C
Tritanopia (blue-blind)
#404353
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4c337e;
/* rgb */ color: rgb(76, 51, 126);
/* oklch */ color: oklch(39.1% 0.122 295.6);
Tailwind
colors: {
  custom: {
    50: '#826ca4',
    500: '#4c337e',
    950: '#000000',
  },
}
SCSS
$custom: #4c337e;
$custom-light: #826ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c337e",
  "rgb": {
    "r": 76,
    "g": 51,
    "b": 126
  },
  "hsl": {
    "h": 260,
    "s": 42.373,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39058,
    "c": 0.12196,
    "h": 295.6
  },
  "luminance": 0.05411
}

Semantic roles & 50–950 ramp

primary
#4C337E
secondary
#92AA63
accent
#D256A9
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #4C337E

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

Preview Lab → · Contrast checker → · Palette generator →

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