#4D278C#4D278C

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

Color values

HEX#4D278C
RGBrgb(77, 39, 140)
HSLhsl(263, 56%, 35%)
HSVhsv(263, 72%, 55%)
CMYKcmyk(45%, 72.1%, 0%, 45.1%)
CIE-LABlab(26.51, 40.52, -49.67)
CIE-LCHlch(26.51, 64.10, 309.20°)
OKLaboklab(38.44% 0.0668 -0.1421)
OKLCHoklch(38.44% 0.157 295.2)
XYZxyz(8.5184, 4.9221, 25.3071)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D278C #668C27
analogous
#27348C #4D278C #7F278C
triadic
#4D278C #8C4D27 #278C4D
tetradic
#4D278C #8C2734 #668C27 #278C7F
square
#4D278C #8C2734 #668C27 #278C7F
split-complementary
#4D278C #8C7F27 #348C27
monochromatic
#180C2C #331A5C #4D278C #6734BC #885CD2

Accessibility & contrast

On white

10.58
#4D278C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D278C
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D278C#FFFFFF#000000##FFFFFF
##4D278C1.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8F
Deuteranopia (green-blind)
#003D8A
Tritanopia (blue-blind)
#3C4056
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4d278c;
/* rgb */ color: rgb(77, 39, 140);
/* oklch */ color: oklch(38.4% 0.157 295.2);
Tailwind
colors: {
  custom: {
    50: '#8564ae',
    500: '#4d278c',
    950: '#000000',
  },
}
SCSS
$custom: #4d278c;
$custom-light: #8564ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4d278c",
  "rgb": {
    "r": 77,
    "g": 39,
    "b": 140
  },
  "hsl": {
    "h": 262.574,
    "s": 56.425,
    "l": 35.098
  },
  "oklch": {
    "l": 0.3844,
    "c": 0.15706,
    "h": 295.2
  },
  "luminance": 0.04922
}

Semantic roles & 50–950 ramp

primary
#4D278C
secondary
#93B758
accent
#E048A7
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4D278C

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

Preview Lab → · Contrast checker → · Palette generator →

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