#4E4271#4E4271

#4E4271 is a dark, moderate violet. Relative luminance 0.067; OKLCH L 41.3% C 0.078 H 294.5°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#4E4271
RGBrgb(78, 66, 113)
HSLhsl(255, 26%, 35%)
HSVhsv(255, 42%, 44%)
CMYKcmyk(31%, 41.6%, 0%, 55.7%)
CIE-LABlab(31.13, 16.60, -25.34)
CIE-LCHlch(31.13, 30.29, 303.23°)
OKLaboklab(41.29% 0.0323 -0.0708)
OKLCHoklch(41.29% 0.078 294.5)
XYZxyz(8.0700, 6.7083, 16.4892)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E4271 #657142
analogous
#424E71 #4E4271 #654271
triadic
#4E4271 #714E42 #42714E
tetradic
#4E4271 #71424E #657142 #427165
square
#4E4271 #71424E #657142 #427165
split-complementary
#4E4271 #716542 #4E7142
monochromatic
#191524 #332B4A #4E4271 #695998 #897BB2

Accessibility & contrast

On white

8.97
#4E4271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#4E4271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E4271
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E4271#FFFFFF#000000##FFFFFF
##4E42711.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354A73
Deuteranopia (green-blind)
#364970
Tritanopia (blue-blind)
#464A54
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e4271;
/* rgb */ color: rgb(78, 66, 113);
/* oklch */ color: oklch(41.3% 0.078 294.5);
Tailwind
colors: {
  custom: {
    50: '#81769a',
    500: '#4e4271',
    950: '#000000',
  },
}
SCSS
$custom: #4e4271;
$custom-light: #81769a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e4271",
  "rgb": {
    "r": 78,
    "g": 66,
    "b": 113
  },
  "hsl": {
    "h": 255.319,
    "s": 26.257,
    "l": 35.098
  },
  "oklch": {
    "l": 0.41289,
    "c": 0.07782,
    "h": 294.5
  },
  "luminance": 0.06708
}

Semantic roles & 50–950 ramp

primary
#4E4271
secondary
#929D71
accent
#C365AB
background
#F7F7F9
surface
#EEEDF2
border
#C9C8CC
text
#0A080E
muted
#7C7B7E

Preview Lab

Preview with #4E4271

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

Preview Lab → · Contrast checker → · Palette generator →

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