#4D278D#4D278D

#4D278D is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.5% C 0.158 H 294.9°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#4D278D
RGBrgb(77, 39, 141)
HSLhsl(262, 57%, 35%)
HSVhsv(262, 72%, 55%)
CMYKcmyk(45.4%, 72.3%, 0%, 44.7%)
CIE-LABlab(26.60, 40.80, -50.15)
CIE-LCHlch(26.60, 64.65, 309.13°)
OKLaboklab(38.53% 0.0666 -0.1435)
OKLCHoklch(38.53% 0.158 294.9)
XYZxyz(8.5925, 4.9517, 25.6972)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D278D #678D27
analogous
#27348D #4D278D #80278D
triadic
#4D278D #8D4D27 #278D4D
tetradic
#4D278D #8D2734 #678D27 #278D80
square
#4D278D #8D2734 #678D27 #278D80
split-complementary
#4D278D #8D8027 #348D27
monochromatic
#190C2D #331A5D #4D278D #6734BD #885CD2

Accessibility & contrast

On white

10.55
#4D278D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D278D
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D278D#FFFFFF#000000##FFFFFF
##4D278D1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d278d;
/* rgb */ color: rgb(77, 39, 141);
/* oklch */ color: oklch(38.5% 0.158 294.9);
Tailwind
colors: {
  custom: {
    50: '#8564af',
    500: '#4d278d',
    950: '#000000',
  },
}
SCSS
$custom: #4d278d;
$custom-light: #8564af;
$custom-dark: #000000;
JSON
{
  "hex": "#4d278d",
  "rgb": {
    "r": 77,
    "g": 39,
    "b": 141
  },
  "hsl": {
    "h": 262.353,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38527,
    "c": 0.15825,
    "h": 294.9
  },
  "luminance": 0.04952
}

Semantic roles & 50–950 ramp

primary
#4D278D
secondary
#94B759
accent
#E048A7
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4D278D

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

Preview Lab → · Contrast checker → · Palette generator →

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