#4E2789#4E2789

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

Color values

HEX#4E2789
RGBrgb(78, 39, 137)
HSLhsl(264, 56%, 35%)
HSVhsv(264, 72%, 54%)
CMYKcmyk(43.1%, 71.5%, 0%, 46.3%)
CIE-LABlab(26.38, 39.88, -48.01)
CIE-LCHlch(26.38, 62.41, 309.71°)
OKLaboklab(38.3% 0.0689 -0.1372)
OKLCHoklch(38.3% 0.154 296.7)
XYZxyz(8.3816, 4.8767, 24.1618)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2789 #628927
analogous
#273189 #4E2789 #7F2789
triadic
#4E2789 #894E27 #27894E
tetradic
#4E2789 #892731 #628927 #27897F
square
#4E2789 #892731 #628927 #27897F
split-complementary
#4E2789 #897F27 #318927
monochromatic
#180C2A #331959 #4E2789 #6935B9 #895AD0

Accessibility & contrast

On white

10.63
#4E2789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2789
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2789#FFFFFF#000000##FFFFFF
##4E27891.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e2789;
/* rgb */ color: rgb(78, 39, 137);
/* oklch */ color: oklch(38.3% 0.154 296.7);
Tailwind
colors: {
  custom: {
    50: '#8564ac',
    500: '#4e2789',
    950: '#000000',
  },
}
SCSS
$custom: #4e2789;
$custom-light: #8564ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2789",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 137
  },
  "hsl": {
    "h": 263.878,
    "s": 55.682,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38296,
    "c": 0.15355,
    "h": 296.7
  },
  "luminance": 0.04877
}

Semantic roles & 50–950 ramp

primary
#4E2789
secondary
#90B557
accent
#DF49A3
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4E2789

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

Preview Lab → · Contrast checker → · Palette generator →

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