#4E2EA5#4E2EA5

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

Color values

HEX#4E2EA5
RGBrgb(78, 46, 165)
HSLhsl(256, 56%, 41%)
HSVhsv(256, 72%, 65%)
CMYKcmyk(52.7%, 72.1%, 0%, 35.3%)
CIE-LABlab(30.13, 44.14, -59.05)
CIE-LCHlch(30.13, 73.72, 306.78°)
OKLaboklab(41.71% 0.0565 -0.1697)
OKLCHoklch(41.71% 0.179 288.4)
XYZxyz(10.9084, 6.2898, 36.2293)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2EA5 #85A52E
analogous
#2E4AA5 #4E2EA5 #8A2EA5
triadic
#4E2EA5 #A54E2E #2EA54E
tetradic
#4E2EA5 #A52E4A #85A52E #2EA58A
square
#4E2EA5 #A52E4A #85A52E #2EA58A
split-complementary
#4E2EA5 #A58A2E #4AA52E
monochromatic
#211345 #372175 #4E2EA5 #6945CB #9075D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E2EA5#FFFFFF#000000##FFFFFF
##4E2EA51.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)
#0049A9
Deuteranopia (green-blind)
#0044A3
Tritanopia (blue-blind)
#2D4D66
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e2ea5;
/* rgb */ color: rgb(78, 46, 165);
/* oklch */ color: oklch(41.7% 0.179 288.4);
Tailwind
colors: {
  custom: {
    50: '#886ac1',
    500: '#4e2ea5',
    950: '#000000',
  },
}
SCSS
$custom: #4e2ea5;
$custom-light: #886ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2ea5",
  "rgb": {
    "r": 78,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 256.134,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41713,
    "c": 0.17883,
    "h": 288.4
  },
  "luminance": 0.0629
}

Semantic roles & 50–950 ramp

primary
#4E2EA5
secondary
#AAC06F
accent
#E048B7
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E2EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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