#4E278C#4E278C

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

Color values

HEX#4E278C
RGBrgb(78, 39, 140)
HSLhsl(263, 56%, 35%)
HSVhsv(263, 72%, 55%)
CMYKcmyk(44.3%, 72.1%, 0%, 45.1%)
CIE-LABlab(26.63, 40.71, -49.47)
CIE-LCHlch(26.63, 64.07, 309.45°)
OKLaboklab(38.55% 0.0683 -0.1415)
OKLCHoklch(38.55% 0.157 295.8)
XYZxyz(8.5998, 4.9640, 25.3109)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E278C #658C27
analogous
#27338C #4E278C #80278C
triadic
#4E278C #8C4E27 #278C4E
tetradic
#4E278C #8C2733 #658C27 #278C80
square
#4E278C #8C2733 #658C27 #278C80
split-complementary
#4E278C #8C8027 #338C27
monochromatic
#190C2C #331A5C #4E278C #6934BC #895CD2

Accessibility & contrast

On white

10.54
#4E278C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E278C
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E278C#FFFFFF#000000##FFFFFF
##4E278C1.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408F
Deuteranopia (green-blind)
#003E8A
Tritanopia (blue-blind)
#3D4056
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e278c;
/* rgb */ color: rgb(78, 39, 140);
/* oklch */ color: oklch(38.6% 0.157 295.8);
Tailwind
colors: {
  custom: {
    50: '#8564ae',
    500: '#4e278c',
    950: '#000000',
  },
}
SCSS
$custom: #4e278c;
$custom-light: #8564ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4e278c",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 140
  },
  "hsl": {
    "h": 263.168,
    "s": 56.425,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38553,
    "c": 0.15714,
    "h": 295.8
  },
  "luminance": 0.04964
}

Semantic roles & 50–950 ramp

primary
#4E278C
secondary
#92B758
accent
#E048A5
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4E278C

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

Preview Lab → · Contrast checker → · Palette generator →

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