#4E4181#4E4181

#4E4181 is a dark, moderate violet. Relative luminance 0.070; OKLCH L 42.1% C 0.104 H 290.6°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#4E4181
RGBrgb(78, 65, 129)
HSLhsl(252, 33%, 38%)
HSVhsv(252, 50%, 51%)
CMYKcmyk(39.5%, 49.6%, 0%, 49.4%)
CIE-LABlab(31.77, 21.93, -34.35)
CIE-LCHlch(31.77, 40.75, 302.55°)
OKLaboklab(42.07% 0.0365 -0.0971)
OKLCHoklch(42.07% 0.104 290.6)
XYZxyz(8.9936, 6.9850, 21.6390)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E4181 #748141
analogous
#415481 #4E4181 #6E4181
triadic
#4E4181 #814E41 #41814E
tetradic
#4E4181 #814154 #748141 #41816E
square
#4E4181 #814154 #748141 #41816E
split-complementary
#4E4181 #816E41 #548141
monochromatic
#1D1830 #352C58 #4E4181 #6756AA #8B7EBE

Accessibility & contrast

On white

8.76
#4E4181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#4E4181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E4181
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E4181#FFFFFF#000000##FFFFFF
##4E41811.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294C83
Deuteranopia (green-blind)
#2A4980
Tritanopia (blue-blind)
#414E5B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4e4181;
/* rgb */ color: rgb(78, 65, 129);
/* oklch */ color: oklch(42.1% 0.104 290.6);
Tailwind
colors: {
  custom: {
    50: '#8276a6',
    500: '#4e4181',
    950: '#000000',
  },
}
SCSS
$custom: #4e4181;
$custom-light: #8276a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e4181",
  "rgb": {
    "r": 78,
    "g": 65,
    "b": 129
  },
  "hsl": {
    "h": 252.188,
    "s": 32.99,
    "l": 38.039
  },
  "oklch": {
    "l": 0.42068,
    "c": 0.1037,
    "h": 290.6
  },
  "luminance": 0.06985
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E4181

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

Preview Lab → · Contrast checker → · Palette generator →

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