#4E3873#4E3873

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

Color values

HEX#4E3873
RGBrgb(78, 56, 115)
HSLhsl(262, 35%, 34%)
HSVhsv(262, 51%, 45%)
CMYKcmyk(32.2%, 51.3%, 0%, 54.9%)
CIE-LABlab(28.61, 23.61, -30.60)
CIE-LCHlch(28.61, 38.65, 307.66°)
OKLaboklab(39.42% 0.0478 -0.0861)
OKLCHoklch(39.42% 0.099 299)
XYZxyz(7.6498, 5.6858, 16.9108)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3873 #5D7338
analogous
#383F73 #4E3873 #6B3873
triadic
#4E3873 #734E38 #38734E
tetradic
#4E3873 #73383F #5D7338 #38736B
square
#4E3873 #73383F #5D7338 #38736B
split-complementary
#4E3873 #736B38 #3F7338
monochromatic
#161021 #32244A #4E3873 #6A4C9C #896DB8

Accessibility & contrast

On white

9.83
#4E3873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4E3873 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3873
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3873#FFFFFF#000000##FFFFFF
##4E38731.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254375
Deuteranopia (green-blind)
#2A4372
Tritanopia (blue-blind)
#464350
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e3873;
/* rgb */ color: rgb(78, 56, 115);
/* oklch */ color: oklch(39.4% 0.099 299.0);
Tailwind
colors: {
  custom: {
    50: '#826f9b',
    500: '#4e3873',
    950: '#000000',
  },
}
SCSS
$custom: #4e3873;
$custom-light: #826f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3873",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 115
  },
  "hsl": {
    "h": 262.373,
    "s": 34.503,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39422,
    "c": 0.0985,
    "h": 299
  },
  "luminance": 0.05686
}

Semantic roles & 50–950 ramp

primary
#4E3873
secondary
#8BA166
accent
#CB5DA2
background
#F8F6F9
surface
#EFECF2
border
#CAC7CC
text
#0A070E
muted
#7C7A7E

Preview Lab

Preview with #4E3873

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

Preview Lab → · Contrast checker → · Palette generator →

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