#4E407B#4E407B

#4E407B is a dark, moderate violet. Relative luminance 0.067; OKLCH L 41.5% C 0.096 H 292.6°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#4E407B
RGBrgb(78, 64, 123)
HSLhsl(254, 32%, 37%)
HSVhsv(254, 48%, 48%)
CMYKcmyk(36.6%, 48%, 0%, 51.8%)
CIE-LABlab(31.15, 20.79, -31.59)
CIE-LCHlch(31.15, 37.82, 303.34°)
OKLaboklab(41.49% 0.0371 -0.089)
OKLCHoklch(41.49% 0.096 292.6)
XYZxyz(8.5495, 6.7164, 19.5810)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E407B #6D7B40
analogous
#40507B #4E407B #6C407B
triadic
#4E407B #7B4E40 #407B4E
tetradic
#4E407B #7B4050 #6D7B40 #407B6C
square
#4E407B #7B4050 #6D7B40 #407B6C
split-complementary
#4E407B #7B6C40 #507B40
monochromatic
#1B162A #342B53 #4E407B #6855A3 #8A7BBA

Accessibility & contrast

On white

8.96
#4E407B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#4E407B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E407B
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E407B#FFFFFF#000000##FFFFFF
##4E407B1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4A7D
Deuteranopia (green-blind)
#2E487A
Tritanopia (blue-blind)
#434B57
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e407b;
/* rgb */ color: rgb(78, 64, 123);
/* oklch */ color: oklch(41.5% 0.096 292.6);
Tailwind
colors: {
  custom: {
    50: '#8275a1',
    500: '#4e407b',
    950: '#000000',
  },
}
SCSS
$custom: #4e407b;
$custom-light: #8275a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e407b",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 123
  },
  "hsl": {
    "h": 254.237,
    "s": 31.551,
    "l": 36.667
  },
  "oklch": {
    "l": 0.41485,
    "c": 0.09643,
    "h": 292.6
  },
  "luminance": 0.06717
}

Semantic roles & 50–950 ramp

primary
#4E407B
secondary
#99A572
accent
#C860AF
background
#F8F7FA
surface
#EFEDF3
border
#CAC8CD
text
#0B080F
muted
#7C7B7F

Preview Lab

Preview with #4E407B

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

Preview Lab → · Contrast checker → · Palette generator →

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