#4E289F#4E289F

#4E289F is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.178 H 290.7°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#4E289F
RGBrgb(78, 40, 159)
HSLhsl(259, 60%, 39%)
HSVhsv(259, 75%, 62%)
CMYKcmyk(50.9%, 74.8%, 0%, 37.6%)
CIE-LABlab(28.49, 45.52, -58.11)
CIE-LCHlch(28.49, 73.82, 308.07°)
OKLaboklab(40.38% 0.0632 -0.1669)
OKLCHoklch(40.38% 0.178 290.7)
XYZxyz(10.1569, 5.6401, 33.3476)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E289F #799F28
analogous
#283D9F #4E289F #8A289F
triadic
#4E289F #9F4E28 #289F4E
tetradic
#4E289F #9F283D #799F28 #289F8A
square
#4E289F #9F283D #799F28 #289F8A
split-complementary
#4E289F #9F8A28 #3D9F28
monochromatic
#1E0F3D #361C6E #4E289F #6737CD #8C68D9

Accessibility & contrast

On white

9.87
#4E289F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4E289F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E289F
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E289F#FFFFFF#000000##FFFFFF
##4E289F1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#00409D
Tritanopia (blue-blind)
#324861
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e289f;
/* rgb */ color: rgb(78, 40, 159);
/* oklch */ color: oklch(40.4% 0.178 290.7);
Tailwind
colors: {
  custom: {
    50: '#8866bc',
    500: '#4e289f',
    950: '#000000',
  },
}
SCSS
$custom: #4e289f;
$custom-light: #8866bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e289f",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 159
  },
  "hsl": {
    "h": 259.16,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40382,
    "c": 0.17843,
    "h": 290.7
  },
  "luminance": 0.0564
}

Semantic roles & 50–950 ramp

primary
#4E289F
secondary
#A2BF64
accent
#E345B0
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E289F

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

Preview Lab → · Contrast checker → · Palette generator →

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