#4E278F#4E278F

#4E278F is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.8% C 0.161 H 294.9°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#4E278F
RGBrgb(78, 39, 143)
HSLhsl(263, 57%, 36%)
HSVhsv(263, 73%, 56%)
CMYKcmyk(45.5%, 72.7%, 0%, 43.9%)
CIE-LABlab(26.89, 41.54, -50.91)
CIE-LCHlch(26.89, 65.71, 309.21°)
OKLaboklab(38.81% 0.0677 -0.1457)
OKLCHoklch(38.81% 0.161 294.9)
XYZxyz(8.8240, 5.0537, 26.4918)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E278F #688F27
analogous
#27348F #4E278F #82278F
triadic
#4E278F #8F4E27 #278F4E
tetradic
#4E278F #8F2734 #688F27 #278F82
square
#4E278F #8F2734 #688F27 #278F82
split-complementary
#4E278F #8F8227 #348F27
monochromatic
#1A0D2F #341A5F #4E278F #6834BF #8A5DD3

Accessibility & contrast

On white

10.44
#4E278F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4E278F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E278F
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E278F#FFFFFF#000000##FFFFFF
##4E278F1.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#003E8D
Tritanopia (blue-blind)
#3C4158
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e278f;
/* rgb */ color: rgb(78, 39, 143);
/* oklch */ color: oklch(38.8% 0.161 294.9);
Tailwind
colors: {
  custom: {
    50: '#8665b1',
    500: '#4e278f',
    950: '#000000',
  },
}
SCSS
$custom: #4e278f;
$custom-light: #8665b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e278f",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 143
  },
  "hsl": {
    "h": 262.5,
    "s": 57.143,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38814,
    "c": 0.16071,
    "h": 294.9
  },
  "luminance": 0.05054
}

Semantic roles & 50–950 ramp

primary
#4E278F
secondary
#95B85A
accent
#E047A7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E278F

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

Preview Lab → · Contrast checker → · Palette generator →

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