#4E279E#4E279E

#4E279E is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.178 H 291.1°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#4E279E
RGBrgb(78, 39, 158)
HSLhsl(260, 60%, 39%)
HSVhsv(260, 75%, 62%)
CMYKcmyk(50.6%, 75.3%, 0%, 38%)
CIE-LABlab(28.22, 45.74, -57.94)
CIE-LCHlch(28.22, 73.82, 308.29°)
OKLaboklab(40.17% 0.0643 -0.1664)
OKLCHoklch(40.17% 0.178 291.1)
XYZxyz(10.0372, 5.5390, 32.8814)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E279E #779E27
analogous
#273B9E #4E279E #89279E
triadic
#4E279E #9E4E27 #279E4E
tetradic
#4E279E #9E273B #779E27 #279E89
square
#4E279E #9E273B #779E27 #279E89
split-complementary
#4E279E #9E8927 #3B9E27
monochromatic
#1E0F3C #361B6D #4E279E #6735CD #8C66D9

Accessibility & contrast

On white

9.96
#4E279E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4E279E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E279E
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E279E#FFFFFF#000000##FFFFFF
##4E279E1.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#334761
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e279e;
/* rgb */ color: rgb(78, 39, 158);
/* oklch */ color: oklch(40.2% 0.178 291.1);
Tailwind
colors: {
  custom: {
    50: '#8865bc',
    500: '#4e279e',
    950: '#000000',
  },
}
SCSS
$custom: #4e279e;
$custom-light: #8865bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e279e",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 158
  },
  "hsl": {
    "h": 259.664,
    "s": 60.406,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40166,
    "c": 0.17835,
    "h": 291.1
  },
  "luminance": 0.05539
}

Semantic roles & 50–950 ramp

primary
#4E279E
secondary
#A1BF62
accent
#E444AF
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E279E

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

Preview Lab → · Contrast checker → · Palette generator →

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