#4E4187#4E4187

#4E4187 is a dark, moderate violet. Relative luminance 0.071; OKLCH L 42.5% C 0.113 H 289.2°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#4E4187
RGBrgb(78, 65, 135)
HSLhsl(251, 35%, 39%)
HSVhsv(251, 52%, 53%)
CMYKcmyk(42.2%, 51.9%, 0%, 47.1%)
CIE-LABlab(32.14, 23.74, -37.47)
CIE-LCHlch(32.14, 44.36, 302.36°)
OKLaboklab(42.47% 0.0371 -0.1062)
OKLCHoklch(42.47% 0.113 289.2)
XYZxyz(9.4041, 7.1493, 23.8014)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E4187 #7A8741
analogous
#415787 #4E4187 #714187
triadic
#4E4187 #874E41 #41874E
tetradic
#4E4187 #874157 #7A8741 #418771
square
#4E4187 #874157 #7A8741 #418771
split-complementary
#4E4187 #877141 #578741
monochromatic
#1E1934 #362D5E #4E4187 #6757AE #8D80C2

Accessibility & contrast

On white

8.64
#4E4187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#4E4187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E4187
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E4187#FFFFFF#000000##FFFFFF
##4E41871.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244D89
Deuteranopia (green-blind)
#254A85
Tritanopia (blue-blind)
#3E4F5D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4e4187;
/* rgb */ color: rgb(78, 65, 135);
/* oklch */ color: oklch(42.5% 0.113 289.2);
Tailwind
colors: {
  custom: {
    50: '#8376aa',
    500: '#4e4187',
    950: '#000000',
  },
}
SCSS
$custom: #4e4187;
$custom-light: #8376aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4e4187",
  "rgb": {
    "r": 78,
    "g": 65,
    "b": 135
  },
  "hsl": {
    "h": 251.143,
    "s": 35,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42467,
    "c": 0.11252,
    "h": 289.2
  },
  "luminance": 0.0715
}

Semantic roles & 50–950 ramp

primary
#4E4187
secondary
#A3AD77
accent
#CB5DB7
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #4E4187

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

Preview Lab → · Contrast checker → · Palette generator →

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