#4E2788#4E2788

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

Color values

HEX#4E2788
RGBrgb(78, 39, 136)
HSLhsl(264, 55%, 34%)
HSVhsv(264, 71%, 53%)
CMYKcmyk(42.6%, 71.3%, 0%, 46.7%)
CIE-LABlab(26.30, 39.60, -47.52)
CIE-LCHlch(26.30, 61.86, 309.80°)
OKLaboklab(38.21% 0.0691 -0.1358)
OKLCHoklch(38.21% 0.152 297)
XYZxyz(8.3102, 4.8482, 23.7857)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2788 #618827
analogous
#273088 #4E2788 #7F2788
triadic
#4E2788 #884E27 #27884E
tetradic
#4E2788 #882730 #618827 #27887F
square
#4E2788 #882730 #618827 #27887F
split-complementary
#4E2788 #887F27 #308827
monochromatic
#170C29 #331958 #4E2788 #6935B8 #895AD0

Accessibility & contrast

On white

10.66
#4E2788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2788
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2788#FFFFFF#000000##FFFFFF
##4E27881.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8B
Deuteranopia (green-blind)
#003D86
Tritanopia (blue-blind)
#3F3F54
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e2788;
/* rgb */ color: rgb(78, 39, 136);
/* oklch */ color: oklch(38.2% 0.152 297.0);
Tailwind
colors: {
  custom: {
    50: '#8564ab',
    500: '#4e2788',
    950: '#000000',
  },
}
SCSS
$custom: #4e2788;
$custom-light: #8564ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2788",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 136
  },
  "hsl": {
    "h": 264.124,
    "s": 55.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38211,
    "c": 0.15234,
    "h": 297
  },
  "luminance": 0.04848
}

Semantic roles & 50–950 ramp

primary
#4E2788
secondary
#8FB556
accent
#DF49A3
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4E2788

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

Preview Lab → · Contrast checker → · Palette generator →

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