#4E278A#4E278A

#4E278A is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.4% C 0.155 H 296.4°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#4E278A
RGBrgb(78, 39, 138)
HSLhsl(264, 56%, 35%)
HSVhsv(264, 72%, 54%)
CMYKcmyk(43.5%, 71.7%, 0%, 45.9%)
CIE-LABlab(26.46, 40.15, -48.50)
CIE-LCHlch(26.46, 62.97, 309.62°)
OKLaboklab(38.38% 0.0687 -0.1386)
OKLCHoklch(38.38% 0.155 296.4)
XYZxyz(8.4536, 4.9055, 24.5413)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E278A #638A27
analogous
#27328A #4E278A #7F278A
triadic
#4E278A #8A4E27 #278A4E
tetradic
#4E278A #8A2732 #638A27 #278A7F
square
#4E278A #8A2732 #638A27 #278A7F
split-complementary
#4E278A #8A7F27 #328A27
monochromatic
#180C2B #331A5A #4E278A #6934BA #895BD1

Accessibility & contrast

On white

10.60
#4E278A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4E278A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E278A
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E278A#FFFFFF#000000##FFFFFF
##4E278A1.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#003D88
Tritanopia (blue-blind)
#3E3F55
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e278a;
/* rgb */ color: rgb(78, 39, 138);
/* oklch */ color: oklch(38.4% 0.155 296.4);
Tailwind
colors: {
  custom: {
    50: '#8564ad',
    500: '#4e278a',
    950: '#000000',
  },
}
SCSS
$custom: #4e278a;
$custom-light: #8564ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4e278a",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 138
  },
  "hsl": {
    "h": 263.636,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38381,
    "c": 0.15475,
    "h": 296.4
  },
  "luminance": 0.04906
}

Semantic roles & 50–950 ramp

primary
#4E278A
secondary
#90B657
accent
#DF49A4
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4E278A

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

Preview Lab → · Contrast checker → · Palette generator →

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