#4E2A81#4E2A81

#4E2A81 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.1% C 0.140 H 298.5°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#4E2A81
RGBrgb(78, 42, 129)
HSLhsl(265, 51%, 34%)
HSVhsv(265, 67%, 51%)
CMYKcmyk(39.5%, 67.4%, 0%, 49.4%)
CIE-LABlab(26.33, 36.02, -43.08)
CIE-LCHlch(26.33, 56.16, 309.90°)
OKLaboklab(38.06% 0.0667 -0.1227)
OKLCHoklch(38.06% 0.14 298.5)
XYZxyz(7.9313, 4.8605, 21.2849)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2A81 #5D812A
analogous
#2A3181 #4E2A81 #792A81
triadic
#4E2A81 #814E2A #2A814E
tetradic
#4E2A81 #812A31 #5D812A #2A8179
square
#4E2A81 #812A31 #5D812A #2A8179
split-complementary
#4E2A81 #81792A #31812A
monochromatic
#160C25 #321B53 #4E2A81 #6A39AF #895CCA

Accessibility & contrast

On white

10.65
#4E2A81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4E2A81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2A81
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2A81#FFFFFF#000000##FFFFFF
##4E2A811.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E84
Deuteranopia (green-blind)
#003D7F
Tritanopia (blue-blind)
#423E51
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e2a81;
/* rgb */ color: rgb(78, 42, 129);
/* oklch */ color: oklch(38.1% 0.140 298.5);
Tailwind
colors: {
  custom: {
    50: '#8466a6',
    500: '#4e2a81',
    950: '#000000',
  },
}
SCSS
$custom: #4e2a81;
$custom-light: #8466a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2a81",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 129
  },
  "hsl": {
    "h": 264.828,
    "s": 50.877,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38061,
    "c": 0.1397,
    "h": 298.5
  },
  "luminance": 0.04861
}

Semantic roles & 50–950 ramp

primary
#4E2A81
secondary
#8BAF57
accent
#DA4DA0
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2A81

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

Preview Lab → · Contrast checker → · Palette generator →

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