#4E289E#4E289E

#4E289E is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.177 H 291.0°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#4E289E
RGBrgb(78, 40, 158)
HSLhsl(259, 60%, 39%)
HSVhsv(259, 75%, 62%)
CMYKcmyk(50.6%, 74.7%, 0%, 38%)
CIE-LABlab(28.39, 45.24, -57.65)
CIE-LCHlch(28.39, 73.29, 308.12°)
OKLaboklab(40.29% 0.0634 -0.1655)
OKLCHoklch(40.29% 0.177 291)
XYZxyz(10.0705, 5.6055, 32.8925)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E289E #789E28
analogous
#283D9E #4E289E #89289E
triadic
#4E289E #9E4E28 #289E4E
tetradic
#4E289E #9E283D #789E28 #289E89
square
#4E289E #9E283D #789E28 #289E89
split-complementary
#4E289E #9E8928 #3D9E28
monochromatic
#1E0F3C #361C6D #4E289E #6737CC #8C68D9

Accessibility & contrast

On white

9.90
#4E289E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4E289E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E289E
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E289E#FFFFFF#000000##FFFFFF
##4E289E1.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#334861
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e289e;
/* rgb */ color: rgb(78, 40, 158);
/* oklch */ color: oklch(40.3% 0.177 291.0);
Tailwind
colors: {
  custom: {
    50: '#8866bc',
    500: '#4e289e',
    950: '#000000',
  },
}
SCSS
$custom: #4e289e;
$custom-light: #8866bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e289e",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 158
  },
  "hsl": {
    "h": 259.322,
    "s": 59.596,
    "l": 38.824
  },
  "oklch": {
    "l": 0.4029,
    "c": 0.17725,
    "h": 291
  },
  "luminance": 0.05606
}

Semantic roles & 50–950 ramp

primary
#4E289E
secondary
#A1BF63
accent
#E345B0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E289E

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

Preview Lab → · Contrast checker → · Palette generator →

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