#4E3872#4E3872

#4E3872 is a dark, moderate violet. Relative luminance 0.057; OKLCH L 39.4% C 0.097 H 299.4°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#4E3872
RGBrgb(78, 56, 114)
HSLhsl(263, 34%, 33%)
HSVhsv(263, 51%, 45%)
CMYKcmyk(31.6%, 50.9%, 0%, 55.3%)
CIE-LABlab(28.55, 23.33, -30.06)
CIE-LCHlch(28.55, 38.05, 307.82°)
OKLaboklab(39.36% 0.0477 -0.0845)
OKLCHoklch(39.36% 0.097 299.4)
XYZxyz(7.5926, 5.6629, 16.6094)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3872 #5C7238
analogous
#383F72 #4E3872 #6B3872
triadic
#4E3872 #724E38 #38724E
tetradic
#4E3872 #72383F #5C7238 #38726B
square
#4E3872 #72383F #5C7238 #38726B
split-complementary
#4E3872 #726B38 #3F7238
monochromatic
#161020 #322449 #4E3872 #6A4C9B #896DB7

Accessibility & contrast

On white

9.85
#4E3872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4E3872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3872
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3872#FFFFFF#000000##FFFFFF
##4E38721.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254374
Deuteranopia (green-blind)
#2B4371
Tritanopia (blue-blind)
#47434F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e3872;
/* rgb */ color: rgb(78, 56, 114);
/* oklch */ color: oklch(39.4% 0.097 299.4);
Tailwind
colors: {
  custom: {
    50: '#816f9b',
    500: '#4e3872',
    950: '#000000',
  },
}
SCSS
$custom: #4e3872;
$custom-light: #816f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3872",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 114
  },
  "hsl": {
    "h": 262.759,
    "s": 34.118,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39358,
    "c": 0.09706,
    "h": 299.4
  },
  "luminance": 0.05663
}

Semantic roles & 50–950 ramp

primary
#4E3872
secondary
#8AA165
accent
#CA5EA1
background
#F8F6F9
surface
#EFECF2
border
#CAC7CC
text
#0A070E
muted
#7C7A7E

Preview Lab

Preview with #4E3872

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

Preview Lab → · Contrast checker → · Palette generator →

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