#4E2EA9#4E2EA9

#4E2EA9 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.184 H 287.6°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#4E2EA9
RGBrgb(78, 46, 169)
HSLhsl(256, 57%, 42%)
HSVhsv(256, 73%, 66%)
CMYKcmyk(53.8%, 72.8%, 0%, 33.7%)
CIE-LABlab(30.49, 45.31, -60.87)
CIE-LCHlch(30.49, 75.88, 306.66°)
OKLaboklab(42.08% 0.0557 -0.175)
OKLCHoklch(42.08% 0.184 287.6)
XYZxyz(11.2782, 6.4377, 38.1768)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2EA9 #89A92E
analogous
#2E4BA9 #4E2EA9 #8C2EA9
triadic
#4E2EA9 #A94E2E #2EA94E
tetradic
#4E2EA9 #A92E4B #89A92E #2EA98C
square
#4E2EA9 #A92E4B #89A92E #2EA98C
split-complementary
#4E2EA9 #A98C2E #4BA92E
monochromatic
#221449 #382179 #4E2EA9 #6A47CD #9177DA

Accessibility & contrast

On white

9.18
#4E2EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4E2EA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2EA9
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2EA9#FFFFFF#000000##FFFFFF
##4E2EA91.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAD
Deuteranopia (green-blind)
#0044A7
Tritanopia (blue-blind)
#294F68
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e2ea9;
/* rgb */ color: rgb(78, 46, 169);
/* oklch */ color: oklch(42.1% 0.184 287.6);
Tailwind
colors: {
  custom: {
    50: '#896ac4',
    500: '#4e2ea9',
    950: '#000000',
  },
}
SCSS
$custom: #4e2ea9;
$custom-light: #896ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2ea9",
  "rgb": {
    "r": 78,
    "g": 46,
    "b": 169
  },
  "hsl": {
    "h": 255.61,
    "s": 57.209,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42078,
    "c": 0.18364,
    "h": 287.6
  },
  "luminance": 0.06438
}

Semantic roles & 50–950 ramp

primary
#4E2EA9
secondary
#ADC271
accent
#E047B9
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0713
muted
#7D7A82

Preview Lab

Preview with #4E2EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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