#4E2A8F#4E2A8F

#4E2A8F is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.2% C 0.157 H 294.3°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#4E2A8F
RGBrgb(78, 42, 143)
HSLhsl(261, 55%, 36%)
HSVhsv(261, 71%, 56%)
CMYKcmyk(45.5%, 70.6%, 0%, 43.9%)
CIE-LABlab(27.46, 39.95, -49.98)
CIE-LCHlch(27.46, 63.99, 308.64°)
OKLaboklab(39.22% 0.0647 -0.143)
OKLCHoklch(39.22% 0.157 294.3)
XYZxyz(8.9264, 5.2586, 26.5260)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2A8F #6B8F2A
analogous
#2A398F #4E2A8F #812A8F
triadic
#4E2A8F #8F4E2A #2A8F4E
tetradic
#4E2A8F #8F2A39 #6B8F2A #2A8F81
square
#4E2A8F #8F2A39 #6B8F2A #2A8F81
split-complementary
#4E2A8F #8F812A #398F2A
monochromatic
#1A0E30 #341C60 #4E2A8F #6838BE #8A62D1

Accessibility & contrast

On white

10.23
#4E2A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4E2A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2A8F
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2A8F#FFFFFF#000000##FFFFFF
##4E2A8F1.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#3C4359
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e2a8f;
/* rgb */ color: rgb(78, 42, 143);
/* oklch */ color: oklch(39.2% 0.157 294.3);
Tailwind
colors: {
  custom: {
    50: '#8666b1',
    500: '#4e2a8f',
    950: '#000000',
  },
}
SCSS
$custom: #4e2a8f;
$custom-light: #8666b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2a8f",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 143
  },
  "hsl": {
    "h": 261.386,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39221,
    "c": 0.15696,
    "h": 294.3
  },
  "luminance": 0.05259
}

Semantic roles & 50–950 ramp

primary
#4E2A8F
secondary
#97B75E
accent
#DE4AA9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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