#4D2789#4D2789

#4D2789 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.153 H 296.1°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#4D2789
RGBrgb(77, 39, 137)
HSLhsl(263, 56%, 35%)
HSVhsv(263, 72%, 54%)
CMYKcmyk(43.8%, 71.5%, 0%, 46.3%)
CIE-LABlab(26.26, 39.68, -48.22)
CIE-LCHlch(26.26, 62.45, 309.45°)
OKLaboklab(38.18% 0.0674 -0.1378)
OKLCHoklch(38.18% 0.153 296.1)
XYZxyz(8.3003, 4.8348, 24.1580)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2789 #638927
analogous
#273289 #4D2789 #7E2789
triadic
#4D2789 #894D27 #27894D
tetradic
#4D2789 #892732 #638927 #27897E
square
#4D2789 #892732 #638927 #27897E
split-complementary
#4D2789 #897E27 #328927
monochromatic
#170C2A #321959 #4D2789 #6835B9 #885AD0

Accessibility & contrast

On white

10.68
#4D2789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D2789
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2789#FFFFFF#000000##FFFFFF
##4D27891.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8C
Deuteranopia (green-blind)
#003D87
Tritanopia (blue-blind)
#3D3F55
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4d2789;
/* rgb */ color: rgb(77, 39, 137);
/* oklch */ color: oklch(38.2% 0.153 296.1);
Tailwind
colors: {
  custom: {
    50: '#8464ac',
    500: '#4d2789',
    950: '#000000',
  },
}
SCSS
$custom: #4d2789;
$custom-light: #8464ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2789",
  "rgb": {
    "r": 77,
    "g": 39,
    "b": 137
  },
  "hsl": {
    "h": 263.265,
    "s": 55.682,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38181,
    "c": 0.15345,
    "h": 296.1
  },
  "luminance": 0.04835
}

Semantic roles & 50–950 ramp

primary
#4D2789
secondary
#90B557
accent
#DF49A5
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4D2789

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

Preview Lab → · Contrast checker → · Palette generator →

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