#4E4278#4E4278

#4E4278 is a dark, moderate violet. Relative luminance 0.069; OKLCH L 41.7% C 0.089 H 292.3°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#4E4278
RGBrgb(78, 66, 120)
HSLhsl(253, 29%, 36%)
HSVhsv(253, 45%, 47%)
CMYKcmyk(35%, 45%, 0%, 52.9%)
CIE-LABlab(31.51, 18.61, -29.14)
CIE-LCHlch(31.51, 34.58, 302.57°)
OKLaboklab(41.7% 0.0337 -0.0819)
OKLCHoklch(41.7% 0.089 292.3)
XYZxyz(8.4794, 6.8720, 18.6453)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E4278 #6C7842
analogous
#425178 #4E4278 #694278
triadic
#4E4278 #784E42 #42784E
tetradic
#4E4278 #784251 #6C7842 #427869
square
#4E4278 #784251 #6C7842 #427869
split-complementary
#4E4278 #786942 #517842
monochromatic
#1B1729 #342C51 #4E4278 #68589F #8A7DB7

Accessibility & contrast

On white

8.84
#4E4278 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#4E4278 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E4278
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E4278#FFFFFF#000000##FFFFFF
##4E42781.008.842.378.84
#FFFFFF8.841.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314B7A
Deuteranopia (green-blind)
#324977
Tritanopia (blue-blind)
#444C57
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4e4278;
/* rgb */ color: rgb(78, 66, 120);
/* oklch */ color: oklch(41.7% 0.089 292.3);
Tailwind
colors: {
  custom: {
    50: '#81769f',
    500: '#4e4278',
    950: '#000000',
  },
}
SCSS
$custom: #4e4278;
$custom-light: #81769f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e4278",
  "rgb": {
    "r": 78,
    "g": 66,
    "b": 120
  },
  "hsl": {
    "h": 253.333,
    "s": 29.032,
    "l": 36.471
  },
  "oklch": {
    "l": 0.41702,
    "c": 0.08852,
    "h": 292.3
  },
  "luminance": 0.06872
}

Semantic roles & 50–950 ramp

primary
#4E4278
secondary
#98A273
accent
#C562AF
background
#F8F7F9
surface
#EFEDF2
border
#CAC8CC
text
#0A080E
muted
#7C7B7E

Preview Lab

Preview with #4E4278

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

Preview Lab → · Contrast checker → · Palette generator →

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