#4E2DA7#4E2DA7

#4E2DA7 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.182 H 288.2°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#4E2DA7
RGBrgb(78, 45, 167)
HSLhsl(256, 58%, 42%)
HSVhsv(256, 73%, 65%)
CMYKcmyk(53.3%, 73.1%, 0%, 34.5%)
CIE-LABlab(30.12, 45.25, -60.27)
CIE-LCHlch(30.12, 75.37, 306.90°)
OKLaboklab(41.76% 0.057 -0.1732)
OKLCHoklch(41.76% 0.182 288.2)
XYZxyz(11.0533, 6.2860, 37.1826)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2DA7 #86A72D
analogous
#2D49A7 #4E2DA7 #8B2DA7
triadic
#4E2DA7 #A74E2D #2DA74E
tetradic
#4E2DA7 #A72D49 #86A72D #2DA78B
square
#4E2DA7 #A72D49 #86A72D #2DA78B
split-complementary
#4E2DA7 #A78B2D #49A72D
monochromatic
#211347 #372077 #4E2DA7 #6944CD #9075DA

Accessibility & contrast

On white

9.30
#4E2DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2DA7
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2DA7#FFFFFF#000000##FFFFFF
##4E2DA71.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#0044A5
Tritanopia (blue-blind)
#2B4E67
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e2da7;
/* rgb */ color: rgb(78, 45, 167);
/* oklch */ color: oklch(41.8% 0.182 288.2);
Tailwind
colors: {
  custom: {
    50: '#8969c2',
    500: '#4e2da7',
    950: '#000000',
  },
}
SCSS
$custom: #4e2da7;
$custom-light: #8969c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2da7",
  "rgb": {
    "r": 78,
    "g": 45,
    "b": 167
  },
  "hsl": {
    "h": 256.23,
    "s": 57.547,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41762,
    "c": 0.18236,
    "h": 288.2
  },
  "luminance": 0.06286
}

Semantic roles & 50–950 ramp

primary
#4E2DA7
secondary
#ABC16E
accent
#E147B7
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4E2DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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