#4E2A8D#4E2A8D

#4E2A8D is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.1% C 0.155 H 294.9°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#4E2A8D
RGBrgb(78, 42, 141)
HSLhsl(262, 54%, 36%)
HSVhsv(262, 70%, 55%)
CMYKcmyk(44.7%, 70.2%, 0%, 44.7%)
CIE-LABlab(27.29, 39.39, -49.01)
CIE-LCHlch(27.29, 62.88, 308.78°)
OKLaboklab(39.05% 0.065 -0.1402)
OKLCHoklch(39.05% 0.155 294.9)
XYZxyz(8.7763, 5.1985, 25.7351)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2A8D #698D2A
analogous
#2A378D #4E2A8D #7F2A8D
triadic
#4E2A8D #8D4E2A #2A8D4E
tetradic
#4E2A8D #8D2A37 #698D2A #2A8D7F
square
#4E2A8D #8D2A37 #698D2A #2A8D7F
split-complementary
#4E2A8D #8D7F2A #378D2A
monochromatic
#1A0E2F #341C5E #4E2A8D #6838BC #8A61D0

Accessibility & contrast

On white

10.30
#4E2A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4E2A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2A8D
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2A8D#FFFFFF#000000##FFFFFF
##4E2A8D1.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#003F8B
Tritanopia (blue-blind)
#3D4258
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e2a8d;
/* rgb */ color: rgb(78, 42, 141);
/* oklch */ color: oklch(39.1% 0.155 294.9);
Tailwind
colors: {
  custom: {
    50: '#8566af',
    500: '#4e2a8d',
    950: '#000000',
  },
}
SCSS
$custom: #4e2a8d;
$custom-light: #8566af;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2a8d",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 261.818,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39051,
    "c": 0.15452,
    "h": 294.9
  },
  "luminance": 0.05199
}

Semantic roles & 50–950 ramp

primary
#4E2A8D
secondary
#96B65D
accent
#DD4AA8
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4E2A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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