#4E278D#4E278D

#4E278D is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.6% C 0.158 H 295.5°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#4E278D
RGBrgb(78, 39, 141)
HSLhsl(263, 57%, 35%)
HSVhsv(263, 72%, 55%)
CMYKcmyk(44.7%, 72.3%, 0%, 44.7%)
CIE-LABlab(26.72, 40.99, -49.95)
CIE-LCHlch(26.72, 64.62, 309.37°)
OKLaboklab(38.64% 0.0681 -0.1429)
OKLCHoklch(38.64% 0.158 295.5)
XYZxyz(8.6738, 4.9936, 25.7010)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E278D #668D27
analogous
#27338D #4E278D #81278D
triadic
#4E278D #8D4E27 #278D4E
tetradic
#4E278D #8D2733 #668D27 #278D81
square
#4E278D #8D2733 #668D27 #278D81
split-complementary
#4E278D #8D8127 #338D27
monochromatic
#190C2D #331A5D #4E278D #6934BD #895CD2

Accessibility & contrast

On white

10.51
#4E278D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4E278D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E278D
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E278D#FFFFFF#000000##FFFFFF
##4E278D1.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#003E8B
Tritanopia (blue-blind)
#3D4157
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e278d;
/* rgb */ color: rgb(78, 39, 141);
/* oklch */ color: oklch(38.6% 0.158 295.5);
Tailwind
colors: {
  custom: {
    50: '#8665af',
    500: '#4e278d',
    950: '#000000',
  },
}
SCSS
$custom: #4e278d;
$custom-light: #8665af;
$custom-dark: #000000;
JSON
{
  "hex": "#4e278d",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 141
  },
  "hsl": {
    "h": 262.941,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3864,
    "c": 0.15833,
    "h": 295.5
  },
  "luminance": 0.04994
}

Semantic roles & 50–950 ramp

primary
#4E278D
secondary
#93B759
accent
#E048A6
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4E278D

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

Preview Lab → · Contrast checker → · Palette generator →

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