#4E2A8A#4E2A8A

#4E2A8A is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.8% C 0.151 H 295.7°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#4E2A8A
RGBrgb(78, 42, 138)
HSLhsl(263, 53%, 35%)
HSVhsv(263, 70%, 54%)
CMYKcmyk(43.5%, 69.6%, 0%, 45.9%)
CIE-LABlab(27.05, 38.54, -47.55)
CIE-LCHlch(27.05, 61.21, 309.02°)
OKLaboklab(38.8% 0.0655 -0.1359)
OKLCHoklch(38.8% 0.151 295.7)
XYZxyz(8.5561, 5.1104, 24.5754)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2A8A #668A2A
analogous
#2A368A #4E2A8A #7E2A8A
triadic
#4E2A8A #8A4E2A #2A8A4E
tetradic
#4E2A8A #8A2A36 #668A2A #2A8A7E
square
#4E2A8A #8A2A36 #668A2A #2A8A7E
split-complementary
#4E2A8A #8A7E2A #368A2A
monochromatic
#190D2C #331C5B #4E2A8A #6938B9 #8960CF

Accessibility & contrast

On white

10.38
#4E2A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4E2A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2A8A
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2A8A#FFFFFF#000000##FFFFFF
##4E2A8A1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418D
Deuteranopia (green-blind)
#003F88
Tritanopia (blue-blind)
#3E4156
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e2a8a;
/* rgb */ color: rgb(78, 42, 138);
/* oklch */ color: oklch(38.8% 0.151 295.7);
Tailwind
colors: {
  custom: {
    50: '#8566ad',
    500: '#4e2a8a',
    950: '#000000',
  },
}
SCSS
$custom: #4e2a8a;
$custom-light: #8566ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2a8a",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 262.5,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38798,
    "c": 0.15084,
    "h": 295.7
  },
  "luminance": 0.05111
}

Semantic roles & 50–950 ramp

primary
#4E2A8A
secondary
#93B45B
accent
#DD4BA6
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E2A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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