#4C278D#4C278D

#4C278D is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.4% C 0.158 H 294.3°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#4C278D
RGBrgb(76, 39, 141)
HSLhsl(262, 57%, 35%)
HSVhsv(262, 72%, 55%)
CMYKcmyk(46.1%, 72.3%, 0%, 44.7%)
CIE-LABlab(26.48, 40.61, -50.35)
CIE-LCHlch(26.48, 64.69, 308.89°)
OKLaboklab(38.42% 0.0651 -0.1442)
OKLCHoklch(38.42% 0.158 294.3)
XYZxyz(8.5124, 4.9104, 25.6934)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C278D #688D27
analogous
#27358D #4C278D #7F278D
triadic
#4C278D #8D4C27 #278D4C
tetradic
#4C278D #8D2735 #688D27 #278D7F
square
#4C278D #8D2735 #688D27 #278D7F
split-complementary
#4C278D #8D7F27 #358D27
monochromatic
#180C2D #321A5D #4C278D #6634BD #875CD2

Accessibility & contrast

On white

10.59
#4C278D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4C278D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C278D
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C278D#FFFFFF#000000##FFFFFF
##4C278D1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#003D8B
Tritanopia (blue-blind)
#394157
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4c278d;
/* rgb */ color: rgb(76, 39, 141);
/* oklch */ color: oklch(38.4% 0.158 294.3);
Tailwind
colors: {
  custom: {
    50: '#8464af',
    500: '#4c278d',
    950: '#000000',
  },
}
SCSS
$custom: #4c278d;
$custom-light: #8464af;
$custom-dark: #000000;
JSON
{
  "hex": "#4c278d",
  "rgb": {
    "r": 76,
    "g": 39,
    "b": 141
  },
  "hsl": {
    "h": 261.765,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38416,
    "c": 0.15818,
    "h": 294.3
  },
  "luminance": 0.04911
}

Semantic roles & 50–950 ramp

primary
#4C278D
secondary
#95B759
accent
#E048A9
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4C278D

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

Preview Lab → · Contrast checker → · Palette generator →

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