#4E2E78#4E2E78

#4E2E78 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.0% C 0.122 H 300.6°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#4E2E78
RGBrgb(78, 46, 120)
HSLhsl(266, 45%, 33%)
HSVhsv(266, 62%, 47%)
CMYKcmyk(35%, 61.7%, 0%, 52.9%)
CIE-LABlab(26.53, 31.20, -37.08)
CIE-LCHlch(26.53, 48.46, 310.08°)
OKLaboklab(38% 0.0623 -0.1051)
OKLCHoklch(38% 0.122 300.6)
XYZxyz(7.5082, 4.9297, 18.3216)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2E78 #58782E
analogous
#2E3378 #4E2E78 #732E78
triadic
#4E2E78 #784E2E #2E784E
tetradic
#4E2E78 #782E33 #58782E #2E7873
square
#4E2E78 #782E33 #58782E #2E7873
split-complementary
#4E2E78 #78732E #33782E
monochromatic
#140C20 #311D4C #4E2E78 #6B3FA4 #8A5FC2

Accessibility & contrast

On white

10.57
#4E2E78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4E2E78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2E78
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2E78#FFFFFF#000000##FFFFFF
##4E2E781.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063E7A
Deuteranopia (green-blind)
#173E76
Tritanopia (blue-blind)
#453D4E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e2e78;
/* rgb */ color: rgb(78, 46, 120);
/* oklch */ color: oklch(38.0% 0.122 300.6);
Tailwind
colors: {
  custom: {
    50: '#83689f',
    500: '#4e2e78',
    950: '#000000',
  },
}
SCSS
$custom: #4e2e78;
$custom-light: #83689f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2e78",
  "rgb": {
    "r": 78,
    "g": 46,
    "b": 120
  },
  "hsl": {
    "h": 265.946,
    "s": 44.578,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37995,
    "c": 0.12216,
    "h": 300.6
  },
  "luminance": 0.0493
}

Semantic roles & 50–950 ramp

primary
#4E2E78
secondary
#86A85A
accent
#D4549D
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #4E2E78

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

Preview Lab → · Contrast checker → · Palette generator →

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