#4E4171#4E4171

#4E4171 is a dark, moderate violet. Relative luminance 0.066; OKLCH L 41.1% C 0.080 H 295.1°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#4E4171
RGBrgb(78, 65, 113)
HSLhsl(256, 27%, 35%)
HSVhsv(256, 42%, 44%)
CMYKcmyk(31%, 42.5%, 0%, 55.7%)
CIE-LABlab(30.86, 17.25, -25.77)
CIE-LCHlch(30.86, 31.01, 303.80°)
OKLaboklab(41.08% 0.0338 -0.0721)
OKLCHoklch(41.08% 0.08 295.1)
XYZxyz(8.0121, 6.5924, 16.4699)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E4171 #647141
analogous
#414C71 #4E4171 #664171
triadic
#4E4171 #714E41 #41714E
tetradic
#4E4171 #71414C #647141 #417166
square
#4E4171 #71414C #647141 #417166
split-complementary
#4E4171 #716641 #4C7141
monochromatic
#181423 #332B4A #4E4171 #695798 #897AB2

Accessibility & contrast

On white

9.06
#4E4171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#4E4171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E4171
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E4171#FFFFFF#000000##FFFFFF
##4E41711.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334973
Deuteranopia (green-blind)
#354870
Tritanopia (blue-blind)
#464A53
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e4171;
/* rgb */ color: rgb(78, 65, 113);
/* oklch */ color: oklch(41.1% 0.080 295.1);
Tailwind
colors: {
  custom: {
    50: '#81759a',
    500: '#4e4171',
    950: '#000000',
  },
}
SCSS
$custom: #4e4171;
$custom-light: #81759a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e4171",
  "rgb": {
    "r": 78,
    "g": 65,
    "b": 113
  },
  "hsl": {
    "h": 256.25,
    "s": 26.966,
    "l": 34.902
  },
  "oklch": {
    "l": 0.41082,
    "c": 0.07959,
    "h": 295.1
  },
  "luminance": 0.06593
}

Semantic roles & 50–950 ramp

primary
#4E4171
secondary
#919E70
accent
#C364AA
background
#F7F7F9
surface
#EEEDF2
border
#C9C8CC
text
#0A080E
muted
#7C7B7E

Preview Lab

Preview with #4E4171

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

Preview Lab → · Contrast checker → · Palette generator →

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