#4E289D#4E289D

#4E289D is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.2% C 0.176 H 291.2°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#4E289D
RGBrgb(78, 40, 157)
HSLhsl(259, 59%, 39%)
HSVhsv(259, 75%, 62%)
CMYKcmyk(50.3%, 74.5%, 0%, 38.4%)
CIE-LABlab(28.30, 44.96, -57.19)
CIE-LCHlch(28.30, 72.75, 308.17°)
OKLaboklab(40.2% 0.0636 -0.1642)
OKLCHoklch(40.2% 0.176 291.2)
XYZxyz(9.9848, 5.5712, 32.4410)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E289D #779D28
analogous
#283C9D #4E289D #88289D
triadic
#4E289D #9D4E28 #289D4E
tetradic
#4E289D #9D283C #779D28 #289D88
square
#4E289D #9D283C #779D28 #289D88
split-complementary
#4E289D #9D8828 #3C9D28
monochromatic
#1E0F3B #361C6C #4E289D #6736CC #8C67D8

Accessibility & contrast

On white

9.93
#4E289D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4E289D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E289D
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E289D#FFFFFF#000000##FFFFFF
##4E289D1.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#00409B
Tritanopia (blue-blind)
#344760
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e289d;
/* rgb */ color: rgb(78, 40, 157);
/* oklch */ color: oklch(40.2% 0.176 291.2);
Tailwind
colors: {
  custom: {
    50: '#8866bb',
    500: '#4e289d',
    950: '#000000',
  },
}
SCSS
$custom: #4e289d;
$custom-light: #8866bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4e289d",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 157
  },
  "hsl": {
    "h": 259.487,
    "s": 59.391,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40198,
    "c": 0.17608,
    "h": 291.2
  },
  "luminance": 0.05572
}

Semantic roles & 50–950 ramp

primary
#4E289D
secondary
#A1BE62
accent
#E345AF
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E289D

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

Preview Lab → · Contrast checker → · Palette generator →

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