#4E289A#4E289A

#4E289A is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.9% C 0.173 H 291.9°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#4E289A
RGBrgb(78, 40, 154)
HSLhsl(260, 59%, 38%)
HSVhsv(260, 74%, 60%)
CMYKcmyk(49.4%, 74%, 0%, 39.6%)
CIE-LABlab(28.03, 44.11, -55.81)
CIE-LCHlch(28.03, 71.13, 308.33°)
OKLaboklab(39.92% 0.0644 -0.1601)
OKLCHoklch(39.92% 0.173 291.9)
XYZxyz(9.7318, 5.4700, 31.1086)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E289A #749A28
analogous
#283B9A #4E289A #87289A
triadic
#4E289A #9A4E28 #289A4E
tetradic
#4E289A #9A283B #749A28 #289A87
square
#4E289A #9A283B #749A28 #289A87
split-complementary
#4E289A #9A8728 #3B9A28
monochromatic
#1D0F39 #351B69 #4E289A #6735CA #8B65D7

Accessibility & contrast

On white

10.03
#4E289A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4E289A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E289A
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E289A#FFFFFF#000000##FFFFFF
##4E289A1.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449D
Deuteranopia (green-blind)
#004098
Tritanopia (blue-blind)
#36465F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4e289a;
/* rgb */ color: rgb(78, 40, 154);
/* oklch */ color: oklch(39.9% 0.173 291.9);
Tailwind
colors: {
  custom: {
    50: '#8766b9',
    500: '#4e289a',
    950: '#000000',
  },
}
SCSS
$custom: #4e289a;
$custom-light: #8766b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e289a",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 154
  },
  "hsl": {
    "h": 260,
    "s": 58.763,
    "l": 38.039
  },
  "oklch": {
    "l": 0.39924,
    "c": 0.17255,
    "h": 291.9
  },
  "luminance": 0.0547
}

Semantic roles & 50–950 ramp

primary
#4E289A
secondary
#9EBD61
accent
#E246AE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E289A

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

Preview Lab → · Contrast checker → · Palette generator →

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