#4E2B9A#4E2B9A

#4E2B9A is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.3% C 0.169 H 291.4°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#4E2B9A
RGBrgb(78, 43, 154)
HSLhsl(259, 56%, 39%)
HSVhsv(259, 72%, 60%)
CMYKcmyk(49.4%, 72.1%, 0%, 39.6%)
CIE-LABlab(28.59, 42.55, -54.89)
CIE-LCHlch(28.59, 69.45, 307.78°)
OKLaboklab(40.32% 0.0616 -0.1574)
OKLCHoklch(40.32% 0.169 291.4)
XYZxyz(9.8368, 5.6802, 31.1437)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2B9A #779A2B
analogous
#2B3F9A #4E2B9A #852B9A
triadic
#4E2B9A #9A4E2B #2B9A4E
tetradic
#4E2B9A #9A2B3F #779A2B #2B9A85
square
#4E2B9A #9A2B3F #779A2B #2B9A85
split-complementary
#4E2B9A #9A852B #3F9A2B
monochromatic
#1E103A #361E6A #4E2B9A #673AC8 #8C6AD5

Accessibility & contrast

On white

9.83
#4E2B9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4E2B9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2B9A
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2B9A#FFFFFF#000000##FFFFFF
##4E2B9A1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459D
Deuteranopia (green-blind)
#004198
Tritanopia (blue-blind)
#35485F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e2b9a;
/* rgb */ color: rgb(78, 43, 154);
/* oklch */ color: oklch(40.3% 0.169 291.4);
Tailwind
colors: {
  custom: {
    50: '#8767b9',
    500: '#4e2b9a',
    950: '#000000',
  },
}
SCSS
$custom: #4e2b9a;
$custom-light: #8767b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2b9a",
  "rgb": {
    "r": 78,
    "g": 43,
    "b": 154
  },
  "hsl": {
    "h": 258.919,
    "s": 56.345,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40319,
    "c": 0.16906,
    "h": 291.4
  },
  "luminance": 0.05681
}

Semantic roles & 50–950 ramp

primary
#4E2B9A
secondary
#A1BC65
accent
#E048B0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2B9A

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

Preview Lab → · Contrast checker → · Palette generator →

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