#4E2278#4E2278

#4E2278 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.140 H 303.5°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#4E2278
RGBrgb(78, 34, 120)
HSLhsl(271, 56%, 30%)
HSVhsv(271, 72%, 47%)
CMYKcmyk(35%, 71.7%, 0%, 52.9%)
CIE-LABlab(24.06, 37.92, -41.07)
CIE-LCHlch(24.06, 55.90, 312.72°)
OKLaboklab(36.21% 0.0773 -0.1168)
OKLCHoklch(36.21% 0.14 303.5)
XYZxyz(7.1033, 4.1198, 18.1866)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2278 #4C7822
analogous
#232278 #4E2278 #782277
triadic
#4E2278 #784E22 #22784E
tetradic
#4E2278 #782322 #4C7822 #227778
square
#4E2278 #782322 #4C7822 #227778
split-complementary
#4E2278 #777822 #227823
monochromatic
#100719 #2F1448 #4E2278 #6D30A8 #8C49CB

Accessibility & contrast

On white

11.51
#4E2278 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4E2278 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2278
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2278#FFFFFF#000000##FFFFFF
##4E22781.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387B
Deuteranopia (green-blind)
#003976
Tritanopia (blue-blind)
#46364A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e2278;
/* rgb */ color: rgb(78, 34, 120);
/* oklch */ color: oklch(36.2% 0.140 303.5);
Tailwind
colors: {
  custom: {
    50: '#8461a0',
    500: '#4e2278',
    950: '#000000',
  },
}
SCSS
$custom: #4e2278;
$custom-light: #8461a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2278",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 120
  },
  "hsl": {
    "h": 270.698,
    "s": 55.844,
    "l": 30.196
  },
  "oklch": {
    "l": 0.36211,
    "c": 0.14003,
    "h": 303.5
  },
  "luminance": 0.0412
}

Semantic roles & 50–950 ramp

primary
#4E2278
secondary
#7AAB4B
accent
#DF4992
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #4E2278

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

Preview Lab → · Contrast checker → · Palette generator →

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