#4E278E#4E278E

#4E278E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.160 H 295.2°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#4E278E
RGBrgb(78, 39, 142)
HSLhsl(263, 57%, 35%)
HSVhsv(263, 73%, 56%)
CMYKcmyk(45.1%, 72.5%, 0%, 44.3%)
CIE-LABlab(26.80, 41.27, -50.43)
CIE-LCHlch(26.80, 65.16, 309.29°)
OKLaboklab(38.73% 0.0679 -0.1443)
OKLCHoklch(38.73% 0.16 295.2)
XYZxyz(8.7486, 5.0235, 26.0946)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E278E #678E27
analogous
#27348E #4E278E #81278E
triadic
#4E278E #8E4E27 #278E4E
tetradic
#4E278E #8E2734 #678E27 #278E81
square
#4E278E #8E2734 #678E27 #278E81
split-complementary
#4E278E #8E8127 #348E27
monochromatic
#190D2E #341A5E #4E278E #6834BE #895DD2

Accessibility & contrast

On white

10.47
#4E278E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E278E
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E278E#FFFFFF#000000##FFFFFF
##4E278E1.0010.472.0010.47
#FFFFFF10.471.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#3C4158
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e278e;
/* rgb */ color: rgb(78, 39, 142);
/* oklch */ color: oklch(38.7% 0.160 295.2);
Tailwind
colors: {
  custom: {
    50: '#8665b0',
    500: '#4e278e',
    950: '#000000',
  },
}
SCSS
$custom: #4e278e;
$custom-light: #8665b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e278e",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 142
  },
  "hsl": {
    "h": 262.718,
    "s": 56.906,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38727,
    "c": 0.15952,
    "h": 295.2
  },
  "luminance": 0.05024
}

Semantic roles & 50–950 ramp

primary
#4E278E
secondary
#94B859
accent
#E048A6
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E278E

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

Preview Lab → · Contrast checker → · Palette generator →

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