#4E3870#4E3870

#4E3870 is a dark, moderate violet. Relative luminance 0.056; OKLCH L 39.2% C 0.094 H 300.2°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#4E3870
RGBrgb(78, 56, 112)
HSLhsl(264, 33%, 33%)
HSVhsv(264, 50%, 44%)
CMYKcmyk(30.4%, 50%, 0%, 56.1%)
CIE-LABlab(28.43, 22.77, -28.98)
CIE-LCHlch(28.43, 36.85, 308.16°)
OKLaboklab(39.23% 0.0474 -0.0814)
OKLCHoklch(39.23% 0.094 300.2)
XYZxyz(7.4800, 5.6179, 16.0164)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3870 #5A7038
analogous
#383E70 #4E3870 #6A3870
triadic
#4E3870 #704E38 #38704E
tetradic
#4E3870 #70383E #5A7038 #38706A
square
#4E3870 #70383E #5A7038 #38706A
split-complementary
#4E3870 #706A38 #3E7038
monochromatic
#150F1E #322447 #4E3870 #6A4C99 #896DB6

Accessibility & contrast

On white

9.89
#4E3870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4E3870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3870
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3870#FFFFFF#000000##FFFFFF
##4E38701.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274372
Deuteranopia (green-blind)
#2C436F
Tritanopia (blue-blind)
#47424E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e3870;
/* rgb */ color: rgb(78, 56, 112);
/* oklch */ color: oklch(39.2% 0.094 300.2);
Tailwind
colors: {
  custom: {
    50: '#816f99',
    500: '#4e3870',
    950: '#000000',
  },
}
SCSS
$custom: #4e3870;
$custom-light: #816f99;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3870",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 112
  },
  "hsl": {
    "h": 263.571,
    "s": 33.333,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39231,
    "c": 0.0942,
    "h": 300.2
  },
  "luminance": 0.05618
}

Semantic roles & 50–950 ramp

primary
#4E3870
secondary
#889F65
accent
#C95E9F
background
#F8F6F9
surface
#EFECF2
border
#CAC7CC
text
#0A070E
muted
#7C7A7E

Preview Lab

Preview with #4E3870

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

Preview Lab → · Contrast checker → · Palette generator →

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