#4E407D#4E407D

#4E407D is a dark, moderate violet. Relative luminance 0.068; OKLCH L 41.6% C 0.099 H 292.1°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#4E407D
RGBrgb(78, 64, 125)
HSLhsl(254, 32%, 37%)
HSVhsv(254, 49%, 49%)
CMYKcmyk(37.6%, 48.8%, 0%, 51%)
CIE-LABlab(31.27, 21.38, -32.65)
CIE-LCHlch(31.27, 39.03, 303.21°)
OKLaboklab(41.61% 0.0374 -0.0921)
OKLCHoklch(41.61% 0.099 292.1)
XYZxyz(8.6760, 6.7670, 20.2471)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E407D #6F7D40
analogous
#40517D #4E407D #6C407D
triadic
#4E407D #7D4E40 #407D4E
tetradic
#4E407D #7D4051 #6F7D40 #407D6C
square
#4E407D #7D4051 #6F7D40 #407D6C
split-complementary
#4E407D #7D6C40 #517D40
monochromatic
#1B172C #352B55 #4E407D #6755A5 #8A7CBC

Accessibility & contrast

On white

8.92
#4E407D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#4E407D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E407D
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E407D#FFFFFF#000000##FFFFFF
##4E407D1.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4A7F
Deuteranopia (green-blind)
#2C487C
Tritanopia (blue-blind)
#424C58
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4e407d;
/* rgb */ color: rgb(78, 64, 125);
/* oklch */ color: oklch(41.6% 0.099 292.1);
Tailwind
colors: {
  custom: {
    50: '#8275a3',
    500: '#4e407d',
    950: '#000000',
  },
}
SCSS
$custom: #4e407d;
$custom-light: #8275a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e407d",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 125
  },
  "hsl": {
    "h": 253.77,
    "s": 32.275,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41612,
    "c": 0.09942,
    "h": 292.1
  },
  "luminance": 0.06767
}

Semantic roles & 50–950 ramp

primary
#4E407D
secondary
#9AA673
accent
#C85FB0
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B080F
muted
#7C7B7F

Preview Lab

Preview with #4E407D

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

Preview Lab → · Contrast checker → · Palette generator →

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