#4E2B8A#4E2B8A

#4E2B8A is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.9% C 0.150 H 295.5°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#4E2B8A
RGBrgb(78, 43, 138)
HSLhsl(262, 52%, 35%)
HSVhsv(262, 69%, 54%)
CMYKcmyk(43.5%, 68.8%, 0%, 45.9%)
CIE-LABlab(27.25, 37.99, -47.23)
CIE-LCHlch(27.25, 60.61, 308.81°)
OKLaboklab(38.94% 0.0644 -0.1349)
OKLCHoklch(38.94% 0.15 295.5)
XYZxyz(8.5920, 5.1822, 24.5874)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2B8A #678A2B
analogous
#2B388A #4E2B8A #7D2B8A
triadic
#4E2B8A #8A4E2B #2B8A4E
tetradic
#4E2B8A #8A2B38 #678A2B #2B8A7D
square
#4E2B8A #8A2B38 #678A2B #2B8A7D
split-complementary
#4E2B8A #8A7D2B #388A2B
monochromatic
#190E2D #341C5B #4E2B8A #683AB9 #8961CE

Accessibility & contrast

On white

10.31
#4E2B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2B8A
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2B8A#FFFFFF#000000##FFFFFF
##4E2B8A1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e2b8a;
/* rgb */ color: rgb(78, 43, 138);
/* oklch */ color: oklch(38.9% 0.150 295.5);
Tailwind
colors: {
  custom: {
    50: '#8567ad',
    500: '#4e2b8a',
    950: '#000000',
  },
}
SCSS
$custom: #4e2b8a;
$custom-light: #8567ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2b8a",
  "rgb": {
    "r": 78,
    "g": 43,
    "b": 138
  },
  "hsl": {
    "h": 262.105,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38942,
    "c": 0.14951,
    "h": 295.5
  },
  "luminance": 0.05182
}

Semantic roles & 50–950 ramp

primary
#4E2B8A
secondary
#94B45D
accent
#DC4CA7
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E2B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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