#4E407E#4E407E

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

Color values

HEX#4E407E
RGBrgb(78, 64, 126)
HSLhsl(254, 33%, 37%)
HSVhsv(254, 49%, 49%)
CMYKcmyk(38.1%, 49.2%, 0%, 50.6%)
CIE-LABlab(31.33, 21.67, -33.18)
CIE-LCHlch(31.33, 39.63, 303.15°)
OKLaboklab(41.68% 0.0375 -0.0937)
OKLCHoklch(41.68% 0.101 291.8)
XYZxyz(8.7402, 6.7926, 20.5852)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E407E #707E40
analogous
#40517E #4E407E #6D407E
triadic
#4E407E #7E4E40 #407E4E
tetradic
#4E407E #7E4051 #707E40 #407E6D
square
#4E407E #7E4051 #707E40 #407E6D
split-complementary
#4E407E #7E6D40 #517E40
monochromatic
#1C172D #352B55 #4E407E #6755A7 #8B7CBC

Accessibility & contrast

On white

8.90
#4E407E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E407E
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E407E#FFFFFF#000000##FFFFFF
##4E407E1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4B80
Deuteranopia (green-blind)
#2B487D
Tritanopia (blue-blind)
#424C59
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4e407e;
/* rgb */ color: rgb(78, 64, 126);
/* oklch */ color: oklch(41.7% 0.101 291.8);
Tailwind
colors: {
  custom: {
    50: '#8275a4',
    500: '#4e407e',
    950: '#000000',
  },
}
SCSS
$custom: #4e407e;
$custom-light: #8275a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e407e",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 126
  },
  "hsl": {
    "h": 253.548,
    "s": 32.632,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41677,
    "c": 0.1009,
    "h": 291.8
  },
  "luminance": 0.06793
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E407E

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

Preview Lab → · Contrast checker → · Palette generator →

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