#4E407A#4E407A

#4E407A is a dark, moderate violet. Relative luminance 0.067; OKLCH L 41.4% C 0.095 H 292.9°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#4E407A
RGBrgb(78, 64, 122)
HSLhsl(254, 31%, 36%)
HSVhsv(254, 48%, 48%)
CMYKcmyk(36.1%, 47.5%, 0%, 52.2%)
CIE-LABlab(31.09, 20.49, -31.06)
CIE-LCHlch(31.09, 37.21, 303.42°)
OKLaboklab(41.42% 0.0369 -0.0875)
OKLCHoklch(41.42% 0.095 292.9)
XYZxyz(8.4872, 6.6915, 19.2530)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E407A #6C7A40
analogous
#404F7A #4E407A #6B407A
triadic
#4E407A #7A4E40 #407A4E
tetradic
#4E407A #7A404F #6C7A40 #407A6B
square
#4E407A #7A404F #6C7A40 #407A6B
split-complementary
#4E407A #7A6B40 #4F7A40
monochromatic
#1B162A #342B52 #4E407A #6855A2 #8A7BBA

Accessibility & contrast

On white

8.98
#4E407A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E407A
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E407A#FFFFFF#000000##FFFFFF
##4E407A1.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e407a;
/* rgb */ color: rgb(78, 64, 122);
/* oklch */ color: oklch(41.4% 0.095 292.9);
Tailwind
colors: {
  custom: {
    50: '#8275a1',
    500: '#4e407a',
    950: '#000000',
  },
}
SCSS
$custom: #4e407a;
$custom-light: #8275a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e407a",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 122
  },
  "hsl": {
    "h": 254.483,
    "s": 31.183,
    "l": 36.471
  },
  "oklch": {
    "l": 0.41422,
    "c": 0.09494,
    "h": 292.9
  },
  "luminance": 0.06692
}

Semantic roles & 50–950 ramp

primary
#4E407A
secondary
#98A472
accent
#C760AF
background
#F8F7F9
surface
#EFEDF2
border
#CAC8CC
text
#0A080F
muted
#7C7B7E

Preview Lab

Preview with #4E407A

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

Preview Lab → · Contrast checker → · Palette generator →

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