#4D278E#4D278E

#4D278E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.6% C 0.159 H 294.6°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#4D278E
RGBrgb(77, 39, 142)
HSLhsl(262, 57%, 35%)
HSVhsv(262, 73%, 56%)
CMYKcmyk(45.8%, 72.5%, 0%, 44.3%)
CIE-LABlab(26.68, 41.08, -50.63)
CIE-LCHlch(26.68, 65.20, 309.05°)
OKLaboklab(38.62% 0.0664 -0.1449)
OKLCHoklch(38.62% 0.159 294.6)
XYZxyz(8.6673, 4.9816, 26.0908)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D278E #688E27
analogous
#27348E #4D278E #80278E
triadic
#4D278E #8E4D27 #278E4D
tetradic
#4D278E #8E2734 #688E27 #278E80
square
#4D278E #8E2734 #688E27 #278E80
split-complementary
#4D278E #8E8027 #348E27
monochromatic
#190D2E #331A5E #4D278E #6734BE #885DD2

Accessibility & contrast

On white

10.52
#4D278E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4D278E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D278E
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D278E#FFFFFF#000000##FFFFFF
##4D278E1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d278e;
/* rgb */ color: rgb(77, 39, 142);
/* oklch */ color: oklch(38.6% 0.159 294.6);
Tailwind
colors: {
  custom: {
    50: '#8564b0',
    500: '#4d278e',
    950: '#000000',
  },
}
SCSS
$custom: #4d278e;
$custom-light: #8564b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d278e",
  "rgb": {
    "r": 77,
    "g": 39,
    "b": 142
  },
  "hsl": {
    "h": 262.136,
    "s": 56.906,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38615,
    "c": 0.15945,
    "h": 294.6
  },
  "luminance": 0.04982
}

Semantic roles & 50–950 ramp

primary
#4D278E
secondary
#95B859
accent
#E048A8
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4D278E

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

Preview Lab → · Contrast checker → · Palette generator →

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