#4D278A#4D278A

#4D278A is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.3% C 0.155 H 295.8°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#4D278A
RGBrgb(77, 39, 138)
HSLhsl(263, 56%, 35%)
HSVhsv(263, 72%, 54%)
CMYKcmyk(44.2%, 71.7%, 0%, 45.9%)
CIE-LABlab(26.34, 39.96, -48.70)
CIE-LCHlch(26.34, 63.00, 309.37°)
OKLaboklab(38.27% 0.0672 -0.1393)
OKLCHoklch(38.27% 0.155 295.8)
XYZxyz(8.3723, 4.8636, 24.5375)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D278A #648A27
analogous
#27338A #4D278A #7E278A
triadic
#4D278A #8A4D27 #278A4D
tetradic
#4D278A #8A2733 #648A27 #278A7E
square
#4D278A #8A2733 #648A27 #278A7E
split-complementary
#4D278A #8A7E27 #338A27
monochromatic
#180C2B #321A5A #4D278A #6834BA #885BD1

Accessibility & contrast

On white

10.64
#4D278A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4D278A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D278A
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D278A#FFFFFF#000000##FFFFFF
##4D278A1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#003D88
Tritanopia (blue-blind)
#3D4055
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4d278a;
/* rgb */ color: rgb(77, 39, 138);
/* oklch */ color: oklch(38.3% 0.155 295.8);
Tailwind
colors: {
  custom: {
    50: '#8564ad',
    500: '#4d278a',
    950: '#000000',
  },
}
SCSS
$custom: #4d278a;
$custom-light: #8564ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4d278a",
  "rgb": {
    "r": 77,
    "g": 39,
    "b": 138
  },
  "hsl": {
    "h": 263.03,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38267,
    "c": 0.15465,
    "h": 295.8
  },
  "luminance": 0.04864
}

Semantic roles & 50–950 ramp

primary
#4D278A
secondary
#91B657
accent
#DF49A5
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4D278A

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

Preview Lab → · Contrast checker → · Palette generator →

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