#4E288A#4E288A

#4E288A is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.5% C 0.153 H 296.2°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#4E288A
RGBrgb(78, 40, 138)
HSLhsl(263, 55%, 35%)
HSVhsv(263, 71%, 54%)
CMYKcmyk(43.5%, 71%, 0%, 45.9%)
CIE-LABlab(26.66, 39.62, -48.19)
CIE-LCHlch(26.66, 62.39, 309.43°)
OKLaboklab(38.52% 0.0677 -0.1377)
OKLCHoklch(38.52% 0.153 296.2)
XYZxyz(8.4869, 4.9721, 24.5524)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E288A #648A28
analogous
#28338A #4E288A #7F288A
triadic
#4E288A #8A4E28 #288A4E
tetradic
#4E288A #8A2833 #648A28 #288A7F
square
#4E288A #8A2833 #648A28 #288A7F
split-complementary
#4E288A #8A7F28 #338A28
monochromatic
#180C2B #331A5B #4E288A #6936B9 #895DD0

Accessibility & contrast

On white

10.53
#4E288A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E288A
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E288A#FFFFFF#000000##FFFFFF
##4E288A1.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#3E4056
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e288a;
/* rgb */ color: rgb(78, 40, 138);
/* oklch */ color: oklch(38.5% 0.153 296.2);
Tailwind
colors: {
  custom: {
    50: '#8565ad',
    500: '#4e288a',
    950: '#000000',
  },
}
SCSS
$custom: #4e288a;
$custom-light: #8565ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4e288a",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 138
  },
  "hsl": {
    "h": 263.265,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38517,
    "c": 0.15347,
    "h": 296.2
  },
  "luminance": 0.04972
}

Semantic roles & 50–950 ramp

primary
#4E288A
secondary
#91B559
accent
#DE49A5
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4E288A

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

Preview Lab → · Contrast checker → · Palette generator →

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