#4E2A88#4E2A88

#4E2A88 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.6% C 0.148 H 296.3°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#4E2A88
RGBrgb(78, 42, 136)
HSLhsl(263, 53%, 35%)
HSVhsv(263, 69%, 53%)
CMYKcmyk(42.6%, 69.1%, 0%, 46.7%)
CIE-LABlab(26.89, 37.98, -46.57)
CIE-LCHlch(26.89, 60.09, 309.20°)
OKLaboklab(38.63% 0.0658 -0.133)
OKLCHoklch(38.63% 0.148 296.3)
XYZxyz(8.4126, 5.0530, 23.8199)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2A88 #64882A
analogous
#2A3588 #4E2A88 #7D2A88
triadic
#4E2A88 #884E2A #2A884E
tetradic
#4E2A88 #882A35 #64882A #2A887D
square
#4E2A88 #882A35 #64882A #2A887D
split-complementary
#4E2A88 #887D2A #35882A
monochromatic
#180D2A #331C59 #4E2A88 #6938B7 #895FCE

Accessibility & contrast

On white

10.44
#4E2A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4E2A88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2A88
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2A88#FFFFFF#000000##FFFFFF
##4E2A881.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408B
Deuteranopia (green-blind)
#003E86
Tritanopia (blue-blind)
#3F4055
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e2a88;
/* rgb */ color: rgb(78, 42, 136);
/* oklch */ color: oklch(38.6% 0.148 296.3);
Tailwind
colors: {
  custom: {
    50: '#8566ab',
    500: '#4e2a88',
    950: '#000000',
  },
}
SCSS
$custom: #4e2a88;
$custom-light: #8566ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2a88",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 136
  },
  "hsl": {
    "h": 262.979,
    "s": 52.809,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38631,
    "c": 0.14837,
    "h": 296.3
  },
  "luminance": 0.05053
}

Semantic roles & 50–950 ramp

primary
#4E2A88
secondary
#91B35B
accent
#DC4CA5
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E2A88

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

Preview Lab → · Contrast checker → · Palette generator →

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