#4E2EA7#4E2EA7

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

Color values

HEX#4E2EA7
RGBrgb(78, 46, 167)
HSLhsl(256, 57%, 42%)
HSVhsv(256, 72%, 65%)
CMYKcmyk(53.3%, 72.5%, 0%, 34.5%)
CIE-LABlab(30.31, 44.72, -59.96)
CIE-LCHlch(30.31, 74.81, 306.72°)
OKLaboklab(41.9% 0.0561 -0.1723)
OKLCHoklch(41.9% 0.181 288)
XYZxyz(11.0919, 6.3632, 37.1955)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2EA7 #87A72E
analogous
#2E4AA7 #4E2EA7 #8B2EA7
triadic
#4E2EA7 #A74E2E #2EA74E
tetradic
#4E2EA7 #A72E4A #87A72E #2EA78B
square
#4E2EA7 #A72E4A #87A72E #2EA78B
split-complementary
#4E2EA7 #A78B2E #4AA72E
monochromatic
#211447 #382177 #4E2EA7 #6A46CC #9076D9

Accessibility & contrast

On white

9.24
#4E2EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4E2EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2EA7
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2EA7#FFFFFF#000000##FFFFFF
##4E2EA71.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.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: #4e2ea7;
/* rgb */ color: rgb(78, 46, 167);
/* oklch */ color: oklch(41.9% 0.181 288.0);
Tailwind
colors: {
  custom: {
    50: '#896ac2',
    500: '#4e2ea7',
    950: '#000000',
  },
}
SCSS
$custom: #4e2ea7;
$custom-light: #896ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2ea7",
  "rgb": {
    "r": 78,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 255.868,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41895,
    "c": 0.18124,
    "h": 288
  },
  "luminance": 0.06364
}

Semantic roles & 50–950 ramp

primary
#4E2EA7
secondary
#ACC170
accent
#E048B8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4E2EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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