#4D278B#4D278B

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

Color values

HEX#4D278B
RGBrgb(77, 39, 139)
HSLhsl(263, 56%, 35%)
HSVhsv(263, 72%, 55%)
CMYKcmyk(44.6%, 71.9%, 0%, 45.5%)
CIE-LABlab(26.43, 40.24, -49.19)
CIE-LCHlch(26.43, 63.55, 309.28°)
OKLaboklab(38.35% 0.067 -0.1407)
OKLCHoklch(38.35% 0.156 295.5)
XYZxyz(8.4450, 4.8927, 24.9205)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D278B #658B27
analogous
#27338B #4D278B #7F278B
triadic
#4D278B #8B4D27 #278B4D
tetradic
#4D278B #8B2733 #658B27 #278B7F
square
#4D278B #8B2733 #658B27 #278B7F
split-complementary
#4D278B #8B7F27 #338B27
monochromatic
#180C2B #331A5B #4D278B #6734BB #885BD1

Accessibility & contrast

On white

10.61
#4D278B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D278B
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D278B#FFFFFF#000000##FFFFFF
##4D278B1.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003D89
Tritanopia (blue-blind)
#3C4056
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4d278b;
/* rgb */ color: rgb(77, 39, 139);
/* oklch */ color: oklch(38.4% 0.156 295.5);
Tailwind
colors: {
  custom: {
    50: '#8564ae',
    500: '#4d278b',
    950: '#000000',
  },
}
SCSS
$custom: #4d278b;
$custom-light: #8564ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4d278b",
  "rgb": {
    "r": 77,
    "g": 39,
    "b": 139
  },
  "hsl": {
    "h": 262.8,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38353,
    "c": 0.15586,
    "h": 295.5
  },
  "luminance": 0.04893
}

Semantic roles & 50–950 ramp

primary
#4D278B
secondary
#92B658
accent
#DF48A6
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4D278B

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

Preview Lab → · Contrast checker → · Palette generator →

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