#4E2DA1#4E2DA1

#4E2DA1 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.2% C 0.175 H 289.4°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#4E2DA1
RGBrgb(78, 45, 161)
HSLhsl(257, 56%, 40%)
HSVhsv(257, 72%, 63%)
CMYKcmyk(51.6%, 72%, 0%, 36.9%)
CIE-LABlab(29.59, 43.51, -57.53)
CIE-LCHlch(29.59, 72.12, 307.10°)
OKLaboklab(41.22% 0.0583 -0.1652)
OKLCHoklch(41.22% 0.175 289.4)
XYZxyz(10.5114, 6.0692, 34.3289)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2DA1 #80A12D
analogous
#2D46A1 #4E2DA1 #882DA1
triadic
#4E2DA1 #A14E2D #2DA14E
tetradic
#4E2DA1 #A12D46 #80A12D #2DA188
square
#4E2DA1 #A12D46 #80A12D #2DA188
split-complementary
#4E2DA1 #A1882D #46A12D
monochromatic
#201241 #372071 #4E2DA1 #6841CA #8E71D7

Accessibility & contrast

On white

9.49
#4E2DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4E2DA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2DA1
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2DA1#FFFFFF#000000##FFFFFF
##4E2DA11.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A4
Deuteranopia (green-blind)
#00439F
Tritanopia (blue-blind)
#304B64
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e2da1;
/* rgb */ color: rgb(78, 45, 161);
/* oklch */ color: oklch(41.2% 0.175 289.4);
Tailwind
colors: {
  custom: {
    50: '#8869be',
    500: '#4e2da1',
    950: '#000000',
  },
}
SCSS
$custom: #4e2da1;
$custom-light: #8869be;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2da1",
  "rgb": {
    "r": 78,
    "g": 45,
    "b": 161
  },
  "hsl": {
    "h": 257.069,
    "s": 56.311,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41216,
    "c": 0.17516,
    "h": 289.4
  },
  "luminance": 0.0607
}

Semantic roles & 50–950 ramp

primary
#4E2DA1
secondary
#A7BF6B
accent
#E048B5
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E2DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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