#4C278E#4C278E

#4C278E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.159 H 294.0°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#4C278E
RGBrgb(76, 39, 142)
HSLhsl(262, 57%, 35%)
HSVhsv(262, 73%, 56%)
CMYKcmyk(46.5%, 72.5%, 0%, 44.3%)
CIE-LABlab(26.56, 40.89, -50.83)
CIE-LCHlch(26.56, 65.24, 308.82°)
OKLaboklab(38.5% 0.0649 -0.1456)
OKLCHoklch(38.5% 0.159 294)
XYZxyz(8.5872, 4.9403, 26.0871)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C278E #698E27
analogous
#27368E #4C278E #7F278E
triadic
#4C278E #8E4C27 #278E4C
tetradic
#4C278E #8E2736 #698E27 #278E7F
square
#4C278E #8E2736 #698E27 #278E7F
split-complementary
#4C278E #8E7F27 #368E27
monochromatic
#190D2E #321A5E #4C278E #6634BE #875DD2

Accessibility & contrast

On white

10.56
#4C278E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4C278E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C278E
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C278E#FFFFFF#000000##FFFFFF
##4C278E1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#003D8C
Tritanopia (blue-blind)
#394158
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4c278e;
/* rgb */ color: rgb(76, 39, 142);
/* oklch */ color: oklch(38.5% 0.159 294.0);
Tailwind
colors: {
  custom: {
    50: '#8464b0',
    500: '#4c278e',
    950: '#000000',
  },
}
SCSS
$custom: #4c278e;
$custom-light: #8464b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c278e",
  "rgb": {
    "r": 76,
    "g": 39,
    "b": 142
  },
  "hsl": {
    "h": 261.553,
    "s": 56.906,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38503,
    "c": 0.15939,
    "h": 294
  },
  "luminance": 0.04941
}

Semantic roles & 50–950 ramp

primary
#4C278E
secondary
#96B859
accent
#E048A9
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4C278E

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

Preview Lab → · Contrast checker → · Palette generator →

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