#4C378F#4C378F

#4C378F is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.0% C 0.139 H 289.9°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#4C378F
RGBrgb(76, 55, 143)
HSLhsl(254, 44%, 39%)
HSVhsv(254, 62%, 56%)
CMYKcmyk(46.9%, 61.5%, 0%, 43.9%)
CIE-LABlab(30.04, 31.98, -45.80)
CIE-LCHlch(30.04, 55.87, 304.93°)
OKLaboklab(41.04% 0.0472 -0.1308)
OKLCHoklch(41.04% 0.139 289.9)
XYZxyz(9.3032, 6.2517, 26.6978)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C378F #7A8F37
analogous
#374E8F #4C378F #78378F
triadic
#4C378F #8F4C37 #378F4C
tetradic
#4C378F #8F374E #7A8F37 #378F78
square
#4C378F #8F374E #7A8F37 #378F78
split-complementary
#4C378F #8F7837 #4E8F37
monochromatic
#1D1537 #352663 #4C378F #644AB9 #8A76CA

Accessibility & contrast

On white

9.33
#4C378F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4C378F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C378F
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C378F#FFFFFF#000000##FFFFFF
##4C378F1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#00458D
Tritanopia (blue-blind)
#374B5D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4c378f;
/* rgb */ color: rgb(76, 55, 143);
/* oklch */ color: oklch(41.0% 0.139 289.9);
Tailwind
colors: {
  custom: {
    50: '#836fb0',
    500: '#4c378f',
    950: '#000000',
  },
}
SCSS
$custom: #4c378f;
$custom-light: #836fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c378f",
  "rgb": {
    "r": 76,
    "g": 55,
    "b": 143
  },
  "hsl": {
    "h": 254.318,
    "s": 44.444,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41037,
    "c": 0.13908,
    "h": 289.9
  },
  "luminance": 0.06252
}

Semantic roles & 50–950 ramp

primary
#4C378F
secondary
#A3B36F
accent
#D454B5
background
#F8F6FA
surface
#EFECF5
border
#CAC7CF
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #4C378F

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

Preview Lab → · Contrast checker → · Palette generator →

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