#4E288F#4E288F

#4E288F is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.159 H 294.7°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#4E288F
RGBrgb(78, 40, 143)
HSLhsl(262, 56%, 36%)
HSVhsv(262, 72%, 56%)
CMYKcmyk(45.5%, 72%, 0%, 43.9%)
CIE-LABlab(27.07, 41.02, -50.61)
CIE-LCHlch(27.07, 65.14, 309.03°)
OKLaboklab(38.95% 0.0667 -0.1448)
OKLCHoklch(38.95% 0.159 294.7)
XYZxyz(8.8573, 5.1202, 26.5029)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E288F #698F28
analogous
#28358F #4E288F #81288F
triadic
#4E288F #8F4E28 #288F4E
tetradic
#4E288F #8F2835 #698F28 #288F81
square
#4E288F #8F2835 #698F28 #288F81
split-complementary
#4E288F #8F8128 #358F28
monochromatic
#1A0D2F #341B5F #4E288F #6835BF #8A5FD2

Accessibility & contrast

On white

10.38
#4E288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4E288F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E288F
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E288F#FFFFFF#000000##FFFFFF
##4E288F1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#003E8D
Tritanopia (blue-blind)
#3C4258
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e288f;
/* rgb */ color: rgb(78, 40, 143);
/* oklch */ color: oklch(38.9% 0.159 294.7);
Tailwind
colors: {
  custom: {
    50: '#8665b1',
    500: '#4e288f',
    950: '#000000',
  },
}
SCSS
$custom: #4e288f;
$custom-light: #8665b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e288f",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 262.136,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38947,
    "c": 0.15948,
    "h": 294.7
  },
  "luminance": 0.0512
}

Semantic roles & 50–950 ramp

primary
#4E288F
secondary
#96B85B
accent
#E048A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E288F

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

Preview Lab → · Contrast checker → · Palette generator →

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