#4E2889#4E2889

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

Color values

HEX#4E2889
RGBrgb(78, 40, 137)
HSLhsl(264, 55%, 35%)
HSVhsv(264, 71%, 54%)
CMYKcmyk(43.1%, 70.8%, 0%, 46.3%)
CIE-LABlab(26.57, 39.34, -47.70)
CIE-LCHlch(26.57, 61.83, 309.52°)
OKLaboklab(38.43% 0.0678 -0.1363)
OKLCHoklch(38.43% 0.152 296.5)
XYZxyz(8.4148, 4.9433, 24.1729)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2889 #638928
analogous
#283389 #4E2889 #7E2889
triadic
#4E2889 #894E28 #28894E
tetradic
#4E2889 #892833 #638928 #28897E
square
#4E2889 #892833 #638928 #28897E
split-complementary
#4E2889 #897E28 #338928
monochromatic
#180C2A #331A5A #4E2889 #6936B8 #895CCF

Accessibility & contrast

On white

10.56
#4E2889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4E2889 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2889
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2889#FFFFFF#000000##FFFFFF
##4E28891.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8C
Deuteranopia (green-blind)
#003E87
Tritanopia (blue-blind)
#3F4055
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e2889;
/* rgb */ color: rgb(78, 40, 137);
/* oklch */ color: oklch(38.4% 0.152 296.5);
Tailwind
colors: {
  custom: {
    50: '#8565ac',
    500: '#4e2889',
    950: '#000000',
  },
}
SCSS
$custom: #4e2889;
$custom-light: #8565ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2889",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 137
  },
  "hsl": {
    "h": 263.505,
    "s": 54.802,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38433,
    "c": 0.15225,
    "h": 296.5
  },
  "luminance": 0.04943
}

Semantic roles & 50–950 ramp

primary
#4E2889
secondary
#90B558
accent
#DE4AA4
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4E2889

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

Preview Lab → · Contrast checker → · Palette generator →

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