#4E2DA4#4E2DA4

#4E2DA4 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.179 H 288.8°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#4E2DA4
RGBrgb(78, 45, 164)
HSLhsl(257, 57%, 41%)
HSVhsv(257, 73%, 64%)
CMYKcmyk(52.4%, 72.6%, 0%, 35.7%)
CIE-LABlab(29.85, 44.38, -58.90)
CIE-LCHlch(29.85, 73.75, 306.99°)
OKLaboklab(41.49% 0.0576 -0.1692)
OKLCHoklch(41.49% 0.179 288.8)
XYZxyz(10.7792, 6.1763, 35.7389)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2DA4 #83A42D
analogous
#2D47A4 #4E2DA4 #892DA4
triadic
#4E2DA4 #A44E2D #2DA44E
tetradic
#4E2DA4 #A42D47 #83A42D #2DA489
square
#4E2DA4 #A42D47 #83A42D #2DA489
split-complementary
#4E2DA4 #A4892D #47A42D
monochromatic
#201344 #372074 #4E2DA4 #6943CB #8F73D9

Accessibility & contrast

On white

9.39
#4E2DA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4E2DA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2DA4
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2DA4#FFFFFF#000000##FFFFFF
##4E2DA41.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A7
Deuteranopia (green-blind)
#0043A2
Tritanopia (blue-blind)
#2E4D65
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e2da4;
/* rgb */ color: rgb(78, 45, 164);
/* oklch */ color: oklch(41.5% 0.179 288.8);
Tailwind
colors: {
  custom: {
    50: '#8869c0',
    500: '#4e2da4',
    950: '#000000',
  },
}
SCSS
$custom: #4e2da4;
$custom-light: #8869c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2da4",
  "rgb": {
    "r": 78,
    "g": 45,
    "b": 164
  },
  "hsl": {
    "h": 256.639,
    "s": 56.938,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41488,
    "c": 0.17876,
    "h": 288.8
  },
  "luminance": 0.06177
}

Semantic roles & 50–950 ramp

primary
#4E2DA4
secondary
#A9C06D
accent
#E048B6
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E2DA4

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

Preview Lab → · Contrast checker → · Palette generator →

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