#4E2678#4E2678

#4E2678 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.8% C 0.134 H 302.7°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#4E2678
RGBrgb(78, 38, 120)
HSLhsl(269, 52%, 31%)
HSVhsv(269, 68%, 47%)
CMYKcmyk(35%, 68.3%, 0%, 52.9%)
CIE-LABlab(24.83, 35.79, -39.82)
CIE-LCHlch(24.83, 53.54, 311.95°)
OKLaboklab(36.76% 0.0725 -0.1131)
OKLCHoklch(36.76% 0.134 302.7)
XYZxyz(7.2244, 4.3620, 18.2270)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2678 #507826
analogous
#262778 #4E2678 #772678
triadic
#4E2678 #784E26 #26784E
tetradic
#4E2678 #782627 #507826 #267877
square
#4E2678 #782627 #507826 #267877
split-complementary
#4E2678 #787726 #277826
monochromatic
#12091B #30174A #4E2678 #6C35A6 #8B51C8

Accessibility & contrast

On white

11.22
#4E2678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4E2678 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2678
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2678#FFFFFF#000000##FFFFFF
##4E26781.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7B
Deuteranopia (green-blind)
#063B76
Tritanopia (blue-blind)
#46384B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e2678;
/* rgb */ color: rgb(78, 38, 120);
/* oklch */ color: oklch(36.8% 0.134 302.7);
Tailwind
colors: {
  custom: {
    50: '#8363a0',
    500: '#4e2678',
    950: '#000000',
  },
}
SCSS
$custom: #4e2678;
$custom-light: #8363a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2678",
  "rgb": {
    "r": 78,
    "g": 38,
    "b": 120
  },
  "hsl": {
    "h": 269.268,
    "s": 51.899,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36763,
    "c": 0.13439,
    "h": 302.7
  },
  "luminance": 0.04362
}

Semantic roles & 50–950 ramp

primary
#4E2678
secondary
#7EAA50
accent
#DB4C96
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050F
muted
#7C7A7E

Preview Lab

Preview with #4E2678

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

Preview Lab → · Contrast checker → · Palette generator →

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