#4E2EA6#4E2EA6

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

Color values

HEX#4E2EA6
RGBrgb(78, 46, 166)
HSLhsl(256, 57%, 42%)
HSVhsv(256, 72%, 65%)
CMYKcmyk(53%, 72.3%, 0%, 34.9%)
CIE-LABlab(30.22, 44.43, -59.51)
CIE-LCHlch(30.22, 74.27, 306.75°)
OKLaboklab(41.8% 0.0563 -0.171)
OKLCHoklch(41.8% 0.18 288.2)
XYZxyz(10.9998, 6.3263, 36.7105)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2EA6 #86A62E
analogous
#2E4AA6 #4E2EA6 #8A2EA6
triadic
#4E2EA6 #A64E2E #2EA64E
tetradic
#4E2EA6 #A62E4A #86A62E #2EA68A
square
#4E2EA6 #A62E4A #86A62E #2EA68A
split-complementary
#4E2EA6 #A68A2E #4AA62E
monochromatic
#211346 #372176 #4E2EA6 #6946CC #9076D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E2EA6#FFFFFF#000000##FFFFFF
##4E2EA61.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAA
Deuteranopia (green-blind)
#0044A4
Tritanopia (blue-blind)
#2C4E67
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e2ea6;
/* rgb */ color: rgb(78, 46, 166);
/* oklch */ color: oklch(41.8% 0.180 288.2);
Tailwind
colors: {
  custom: {
    50: '#896ac1',
    500: '#4e2ea6',
    950: '#000000',
  },
}
SCSS
$custom: #4e2ea6;
$custom-light: #896ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2ea6",
  "rgb": {
    "r": 78,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 256,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41804,
    "c": 0.18004,
    "h": 288.2
  },
  "luminance": 0.06327
}

Semantic roles & 50–950 ramp

primary
#4E2EA6
secondary
#ABC16F
accent
#E048B7
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E2EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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