#4E2A8E#4E2A8E

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

Color values

HEX#4E2A8E
RGBrgb(78, 42, 142)
HSLhsl(262, 54%, 36%)
HSVhsv(262, 70%, 56%)
CMYKcmyk(45.1%, 70.4%, 0%, 44.3%)
CIE-LABlab(27.38, 39.67, -49.50)
CIE-LCHlch(27.38, 63.43, 308.71°)
OKLaboklab(39.14% 0.0649 -0.1416)
OKLCHoklch(39.14% 0.156 294.6)
XYZxyz(8.8510, 5.2284, 26.1288)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2A8E #6A8E2A
analogous
#2A388E #4E2A8E #802A8E
triadic
#4E2A8E #8E4E2A #2A8E4E
tetradic
#4E2A8E #8E2A38 #6A8E2A #2A8E80
square
#4E2A8E #8E2A38 #6A8E2A #2A8E80
split-complementary
#4E2A8E #8E802A #388E2A
monochromatic
#1A0E30 #341C5F #4E2A8E #6838BD #8A62D1

Accessibility & contrast

On white

10.26
#4E2A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2A8E
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2A8E#FFFFFF#000000##FFFFFF
##4E2A8E1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#3C4358
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e2a8e;
/* rgb */ color: rgb(78, 42, 142);
/* oklch */ color: oklch(39.1% 0.156 294.6);
Tailwind
colors: {
  custom: {
    50: '#8566b0',
    500: '#4e2a8e',
    950: '#000000',
  },
}
SCSS
$custom: #4e2a8e;
$custom-light: #8566b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2a8e",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 142
  },
  "hsl": {
    "h": 261.6,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39136,
    "c": 0.15574,
    "h": 294.6
  },
  "luminance": 0.05229
}

Semantic roles & 50–950 ramp

primary
#4E2A8E
secondary
#96B65D
accent
#DE4AA9
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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