#4E2DA8#4E2DA8

#4E2DA8 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.9% C 0.184 H 288.0°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#4E2DA8
RGBrgb(78, 45, 168)
HSLhsl(256, 58%, 42%)
HSVhsv(256, 73%, 66%)
CMYKcmyk(53.6%, 73.2%, 0%, 34.1%)
CIE-LABlab(30.21, 45.54, -60.73)
CIE-LCHlch(30.21, 75.91, 306.87°)
OKLaboklab(41.85% 0.0567 -0.1746)
OKLCHoklch(41.85% 0.184 288)
XYZxyz(11.1461, 6.3231, 37.6714)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2DA8 #87A82D
analogous
#2D49A8 #4E2DA8 #8C2DA8
triadic
#4E2DA8 #A84E2D #2DA84E
tetradic
#4E2DA8 #A82D49 #87A82D #2DA88C
square
#4E2DA8 #A82D49 #87A82D #2DA88C
split-complementary
#4E2DA8 #A88C2D #49A82D
monochromatic
#211347 #382078 #4E2DA8 #6A45CD #9075DA

Accessibility & contrast

On white

9.27
#4E2DA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4E2DA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2DA8
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2DA8#FFFFFF#000000##FFFFFF
##4E2DA81.009.272.269.27
#FFFFFF9.271.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAC
Deuteranopia (green-blind)
#0044A6
Tritanopia (blue-blind)
#2A4E68
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e2da8;
/* rgb */ color: rgb(78, 45, 168);
/* oklch */ color: oklch(41.9% 0.184 288.0);
Tailwind
colors: {
  custom: {
    50: '#8969c3',
    500: '#4e2da8',
    950: '#000000',
  },
}
SCSS
$custom: #4e2da8;
$custom-light: #8969c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2da8",
  "rgb": {
    "r": 78,
    "g": 45,
    "b": 168
  },
  "hsl": {
    "h": 256.098,
    "s": 57.746,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41854,
    "c": 0.18355,
    "h": 288
  },
  "luminance": 0.06324
}

Semantic roles & 50–950 ramp

primary
#4E2DA8
secondary
#ACC26F
accent
#E147B8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4E2DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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