#4E278B#4E278B

#4E278B is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.156 H 296.1°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#4E278B
RGBrgb(78, 39, 139)
HSLhsl(263, 56%, 35%)
HSVhsv(263, 72%, 55%)
CMYKcmyk(43.9%, 71.9%, 0%, 45.5%)
CIE-LABlab(26.55, 40.43, -48.99)
CIE-LCHlch(26.55, 63.52, 309.54°)
OKLaboklab(38.47% 0.0685 -0.1401)
OKLCHoklch(38.47% 0.156 296.1)
XYZxyz(8.5264, 4.9346, 24.9243)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E278B #648B27
analogous
#27328B #4E278B #80278B
triadic
#4E278B #8B4E27 #278B4E
tetradic
#4E278B #8B2732 #648B27 #278B80
square
#4E278B #8B2732 #648B27 #278B80
split-complementary
#4E278B #8B8027 #328B27
monochromatic
#180C2B #331A5B #4E278B #6934BB #895BD1

Accessibility & contrast

On white

10.57
#4E278B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4E278B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E278B
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E278B#FFFFFF#000000##FFFFFF
##4E278B1.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003D89
Tritanopia (blue-blind)
#3E4056
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e278b;
/* rgb */ color: rgb(78, 39, 139);
/* oklch */ color: oklch(38.5% 0.156 296.1);
Tailwind
colors: {
  custom: {
    50: '#8564ae',
    500: '#4e278b',
    950: '#000000',
  },
}
SCSS
$custom: #4e278b;
$custom-light: #8564ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4e278b",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 139
  },
  "hsl": {
    "h": 263.4,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38467,
    "c": 0.15594,
    "h": 296.1
  },
  "luminance": 0.04935
}

Semantic roles & 50–950 ramp

primary
#4E278B
secondary
#91B658
accent
#DF48A5
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4E278B

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

Preview Lab → · Contrast checker → · Palette generator →

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