#4E2EA0#4E2EA0

#4E2EA0 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.3% C 0.173 H 289.5°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#4E2EA0
RGBrgb(78, 46, 160)
HSLhsl(257, 55%, 40%)
HSVhsv(257, 71%, 63%)
CMYKcmyk(51.2%, 71.2%, 0%, 37.3%)
CIE-LABlab(29.69, 42.68, -56.75)
CIE-LCHlch(29.69, 71.00, 306.95°)
OKLaboklab(41.26% 0.0576 -0.1629)
OKLCHoklch(41.26% 0.173 289.5)
XYZxyz(10.4622, 6.1113, 33.8792)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2EA0 #80A02E
analogous
#2E47A0 #4E2EA0 #872EA0
triadic
#4E2EA0 #A04E2E #2EA04E
tetradic
#4E2EA0 #A02E47 #80A02E #2EA087
square
#4E2EA0 #A02E47 #80A02E #2EA087
split-complementary
#4E2EA0 #A0872E #47A02E
monochromatic
#201341 #372070 #4E2EA0 #6842C9 #8E72D6

Accessibility & contrast

On white

9.45
#4E2EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4E2EA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2EA0
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2EA0#FFFFFF#000000##FFFFFF
##4E2EA01.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A3
Deuteranopia (green-blind)
#00439E
Tritanopia (blue-blind)
#314C63
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e2ea0;
/* rgb */ color: rgb(78, 46, 160);
/* oklch */ color: oklch(41.3% 0.173 289.5);
Tailwind
colors: {
  custom: {
    50: '#8869bd',
    500: '#4e2ea0',
    950: '#000000',
  },
}
SCSS
$custom: #4e2ea0;
$custom-light: #8869bd;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2ea0",
  "rgb": {
    "r": 78,
    "g": 46,
    "b": 160
  },
  "hsl": {
    "h": 256.842,
    "s": 55.34,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41264,
    "c": 0.17277,
    "h": 289.5
  },
  "luminance": 0.06112
}

Semantic roles & 50–950 ramp

primary
#4E2EA0
secondary
#A7BE6C
accent
#DF49B5
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E2EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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