#4E4180#4E4180

#4E4180 is a dark, moderate violet. Relative luminance 0.070; OKLCH L 42.0% C 0.102 H 290.8°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#4E4180
RGBrgb(78, 65, 128)
HSLhsl(252, 33%, 38%)
HSVhsv(252, 49%, 50%)
CMYKcmyk(39.1%, 49.2%, 0%, 49.8%)
CIE-LABlab(31.71, 21.63, -33.82)
CIE-LCHlch(31.71, 40.14, 302.59°)
OKLaboklab(42% 0.0363 -0.0955)
OKLCHoklch(42% 0.102 290.8)
XYZxyz(8.9274, 6.9586, 21.2907)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E4180 #738041
analogous
#415380 #4E4180 #6D4180
triadic
#4E4180 #804E41 #41804E
tetradic
#4E4180 #804153 #738041 #41806D
square
#4E4180 #804153 #738041 #41806D
split-complementary
#4E4180 #806D41 #538041
monochromatic
#1D182F #352C57 #4E4180 #6756A9 #8B7EBD

Accessibility & contrast

On white

8.78
#4E4180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#4E4180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E4180
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E4180#FFFFFF#000000##FFFFFF
##4E41801.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4C82
Deuteranopia (green-blind)
#2B497F
Tritanopia (blue-blind)
#414D5A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4e4180;
/* rgb */ color: rgb(78, 65, 128);
/* oklch */ color: oklch(42.0% 0.102 290.8);
Tailwind
colors: {
  custom: {
    50: '#8276a5',
    500: '#4e4180',
    950: '#000000',
  },
}
SCSS
$custom: #4e4180;
$custom-light: #8276a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e4180",
  "rgb": {
    "r": 78,
    "g": 65,
    "b": 128
  },
  "hsl": {
    "h": 252.381,
    "s": 32.642,
    "l": 37.843
  },
  "oklch": {
    "l": 0.42003,
    "c": 0.10221,
    "h": 290.8
  },
  "luminance": 0.06959
}

Semantic roles & 50–950 ramp

primary
#4E4180
secondary
#9EA875
accent
#C95FB3
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B080F
muted
#7C7B7F

Preview Lab

Preview with #4E4180

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

Preview Lab → · Contrast checker → · Palette generator →

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