#4E407F#4E407F

#4E407F is a dark, moderate violet. Relative luminance 0.068; OKLCH L 41.7% C 0.102 H 291.6°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#4E407F
RGBrgb(78, 64, 127)
HSLhsl(253, 33%, 37%)
HSVhsv(253, 50%, 50%)
CMYKcmyk(38.6%, 49.6%, 0%, 50.2%)
CIE-LABlab(31.39, 21.97, -33.71)
CIE-LCHlch(31.39, 40.24, 303.09°)
OKLaboklab(41.74% 0.0376 -0.0952)
OKLCHoklch(41.74% 0.102 291.6)
XYZxyz(8.8050, 6.8186, 20.9268)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E407F #717F40
analogous
#40527F #4E407F #6D407F
triadic
#4E407F #7F4E40 #407F4E
tetradic
#4E407F #7F4052 #717F40 #407F6D
square
#4E407F #7F4052 #717F40 #407F6D
split-complementary
#4E407F #7F6D40 #527F40
monochromatic
#1C172E #352B56 #4E407F #6755A8 #8B7CBD

Accessibility & contrast

On white

8.88
#4E407F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#4E407F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E407F
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E407F#FFFFFF#000000##FFFFFF
##4E407F1.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294B81
Deuteranopia (green-blind)
#2B497E
Tritanopia (blue-blind)
#424C59
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4e407f;
/* rgb */ color: rgb(78, 64, 127);
/* oklch */ color: oklch(41.7% 0.102 291.6);
Tailwind
colors: {
  custom: {
    50: '#8275a4',
    500: '#4e407f',
    950: '#000000',
  },
}
SCSS
$custom: #4e407f;
$custom-light: #8275a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e407f",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 127
  },
  "hsl": {
    "h": 253.333,
    "s": 32.984,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41741,
    "c": 0.10238,
    "h": 291.6
  },
  "luminance": 0.06819
}

Semantic roles & 50–950 ramp

primary
#4E407F
secondary
#9CA873
accent
#C95FB1
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B080F
muted
#7C7B7F

Preview Lab

Preview with #4E407F

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

Preview Lab → · Contrast checker → · Palette generator →

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