#4E2989#4E2989

#4E2989 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.6% C 0.151 H 296.2°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#4E2989
RGBrgb(78, 41, 137)
HSLhsl(263, 54%, 35%)
HSVhsv(263, 70%, 54%)
CMYKcmyk(43.1%, 70.1%, 0%, 46.3%)
CIE-LABlab(26.77, 38.80, -47.38)
CIE-LCHlch(26.77, 61.25, 309.32°)
OKLaboklab(38.57% 0.0668 -0.1354)
OKLCHoklch(38.57% 0.151 296.2)
XYZxyz(8.4490, 5.0115, 24.1842)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2989 #648929
analogous
#293489 #4E2989 #7E2989
triadic
#4E2989 #894E29 #29894E
tetradic
#4E2989 #892934 #648929 #29897E
square
#4E2989 #892934 #648929 #29897E
split-complementary
#4E2989 #897E29 #348929
monochromatic
#180D2B #331B5A #4E2989 #6937B8 #895ECF

Accessibility & contrast

On white

10.49
#4E2989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4E2989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2989
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2989#FFFFFF#000000##FFFFFF
##4E29891.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e2989;
/* rgb */ color: rgb(78, 41, 137);
/* oklch */ color: oklch(38.6% 0.151 296.2);
Tailwind
colors: {
  custom: {
    50: '#8566ac',
    500: '#4e2989',
    950: '#000000',
  },
}
SCSS
$custom: #4e2989;
$custom-light: #8566ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2989",
  "rgb": {
    "r": 78,
    "g": 41,
    "b": 137
  },
  "hsl": {
    "h": 263.125,
    "s": 53.933,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38572,
    "c": 0.15095,
    "h": 296.2
  },
  "luminance": 0.05012
}

Semantic roles & 50–950 ramp

primary
#4E2989
secondary
#91B45A
accent
#DD4AA5
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E2989

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

Preview Lab → · Contrast checker → · Palette generator →

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