#4E387A#4E387A

#4E387A is a dark, moderate violet. Relative luminance 0.059; OKLCH L 39.9% C 0.108 H 296.5°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#4E387A
RGBrgb(78, 56, 122)
HSLhsl(260, 37%, 35%)
HSVhsv(260, 54%, 48%)
CMYKcmyk(36.1%, 54.1%, 0%, 52.2%)
CIE-LABlab(29.04, 25.61, -34.33)
CIE-LCHlch(29.04, 42.83, 306.72°)
OKLaboklab(39.89% 0.0485 -0.097)
OKLCHoklch(39.89% 0.108 296.5)
XYZxyz(8.0680, 5.8531, 19.1133)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E387A #647A38
analogous
#38437A #4E387A #6F387A
triadic
#4E387A #7A4E38 #387A4E
tetradic
#4E387A #7A3843 #647A38 #387A6F
square
#4E387A #7A3843 #647A38 #387A6F
split-complementary
#4E387A #7A6F38 #437A38
monochromatic
#181126 #332550 #4E387A #694BA4 #896FBD

Accessibility & contrast

On white

9.67
#4E387A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4E387A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E387A
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E387A#FFFFFF#000000##FFFFFF
##4E387A1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F457C
Deuteranopia (green-blind)
#244478
Tritanopia (blue-blind)
#444553
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e387a;
/* rgb */ color: rgb(78, 56, 122);
/* oklch */ color: oklch(39.9% 0.108 296.5);
Tailwind
colors: {
  custom: {
    50: '#826fa1',
    500: '#4e387a',
    950: '#000000',
  },
}
SCSS
$custom: #4e387a;
$custom-light: #826fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e387a",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 122
  },
  "hsl": {
    "h": 260,
    "s": 37.079,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39885,
    "c": 0.10848,
    "h": 296.5
  },
  "luminance": 0.05853
}

Semantic roles & 50–950 ramp

primary
#4E387A
secondary
#91A668
accent
#CD5BA7
background
#F8F6F9
surface
#EFECF2
border
#CAC7CC
text
#0B070F
muted
#7C7A7E

Preview Lab

Preview with #4E387A

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

Preview Lab → · Contrast checker → · Palette generator →

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