#4E288D#4E288D

#4E288D is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.8% C 0.157 H 295.3°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#4E288D
RGBrgb(78, 40, 141)
HSLhsl(263, 56%, 35%)
HSVhsv(263, 72%, 55%)
CMYKcmyk(44.7%, 71.6%, 0%, 44.7%)
CIE-LABlab(26.91, 40.46, -49.65)
CIE-LCHlch(26.91, 64.04, 309.18°)
OKLaboklab(38.77% 0.0671 -0.142)
OKLCHoklch(38.77% 0.157 295.3)
XYZxyz(8.7071, 5.0602, 25.7121)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E288D #678D28
analogous
#28358D #4E288D #80288D
triadic
#4E288D #8D4E28 #288D4E
tetradic
#4E288D #8D2835 #678D28 #288D80
square
#4E288D #8D2835 #678D28 #288D80
split-complementary
#4E288D #8D8028 #358D28
monochromatic
#190D2E #341A5D #4E288D #6836BD #895ED1

Accessibility & contrast

On white

10.44
#4E288D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4E288D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E288D
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E288D#FFFFFF#000000##FFFFFF
##4E288D1.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#003E8B
Tritanopia (blue-blind)
#3D4157
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e288d;
/* rgb */ color: rgb(78, 40, 141);
/* oklch */ color: oklch(38.8% 0.157 295.3);
Tailwind
colors: {
  custom: {
    50: '#8665af',
    500: '#4e288d',
    950: '#000000',
  },
}
SCSS
$custom: #4e288d;
$custom-light: #8665af;
$custom-dark: #000000;
JSON
{
  "hex": "#4e288d",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 141
  },
  "hsl": {
    "h": 262.574,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38774,
    "c": 0.15708,
    "h": 295.3
  },
  "luminance": 0.0506
}

Semantic roles & 50–950 ramp

primary
#4E288D
secondary
#94B75A
accent
#DF49A7
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4E288D

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

Preview Lab → · Contrast checker → · Palette generator →

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