#4E2A9A#4E2A9A

#4E2A9A is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.2% C 0.170 H 291.5°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#4E2A9A
RGBrgb(78, 42, 154)
HSLhsl(259, 57%, 38%)
HSVhsv(259, 73%, 60%)
CMYKcmyk(49.4%, 72.7%, 0%, 39.6%)
CIE-LABlab(28.40, 43.08, -55.20)
CIE-LCHlch(28.40, 70.02, 307.97°)
OKLaboklab(40.18% 0.0625 -0.1583)
OKLCHoklch(40.18% 0.17 291.5)
XYZxyz(9.8009, 5.6084, 31.1317)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2A9A #769A2A
analogous
#2A3E9A #4E2A9A #862A9A
triadic
#4E2A9A #9A4E2A #2A9A4E
tetradic
#4E2A9A #9A2A3E #769A2A #2A9A86
square
#4E2A9A #9A2A3E #769A2A #2A9A86
split-complementary
#4E2A9A #9A862A #3E9A2A
monochromatic
#1D103A #361D6A #4E2A9A #6738C9 #8C68D6

Accessibility & contrast

On white

9.90
#4E2A9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4E2A9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2A9A
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2A9A#FFFFFF#000000##FFFFFF
##4E2A9A1.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e2a9a;
/* rgb */ color: rgb(78, 42, 154);
/* oklch */ color: oklch(40.2% 0.170 291.5);
Tailwind
colors: {
  custom: {
    50: '#8767b9',
    500: '#4e2a9a',
    950: '#000000',
  },
}
SCSS
$custom: #4e2a9a;
$custom-light: #8767b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2a9a",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 154
  },
  "hsl": {
    "h": 259.286,
    "s": 57.143,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40185,
    "c": 0.17025,
    "h": 291.5
  },
  "luminance": 0.05609
}

Semantic roles & 50–950 ramp

primary
#4E2A9A
secondary
#A0BC63
accent
#E047AF
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E2A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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