#4E2E87#4E2E87

#4E2E87 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.1% C 0.142 H 295.7°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#4E2E87
RGBrgb(78, 46, 135)
HSLhsl(262, 49%, 35%)
HSVhsv(262, 66%, 53%)
CMYKcmyk(42.2%, 65.9%, 0%, 47.1%)
CIE-LABlab(27.64, 35.43, -44.73)
CIE-LCHlch(27.64, 57.06, 308.38°)
OKLaboklab(39.15% 0.0614 -0.1276)
OKLCHoklch(39.15% 0.142 295.7)
XYZxyz(8.4909, 5.3228, 23.4970)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2E87 #67872E
analogous
#2E3A87 #4E2E87 #7A2E87
triadic
#4E2E87 #874E2E #2E874E
tetradic
#4E2E87 #872E3A #67872E #2E877A
square
#4E2E87 #872E3A #67872E #2E877A
split-complementary
#4E2E87 #877A2E #3A872E
monochromatic
#190F2C #341E59 #4E2E87 #683EB5 #8965CA

Accessibility & contrast

On white

10.17
#4E2E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#4E2E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2E87
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2E87#FFFFFF#000000##FFFFFF
##4E2E871.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428A
Deuteranopia (green-blind)
#004085
Tritanopia (blue-blind)
#3F4256
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e2e87;
/* rgb */ color: rgb(78, 46, 135);
/* oklch */ color: oklch(39.1% 0.142 295.7);
Tailwind
colors: {
  custom: {
    50: '#8469ab',
    500: '#4e2e87',
    950: '#000000',
  },
}
SCSS
$custom: #4e2e87;
$custom-light: #8469ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2e87",
  "rgb": {
    "r": 78,
    "g": 46,
    "b": 135
  },
  "hsl": {
    "h": 261.573,
    "s": 49.171,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39147,
    "c": 0.14156,
    "h": 295.7
  },
  "luminance": 0.05323
}

Semantic roles & 50–950 ramp

primary
#4E2E87
secondary
#94B160
accent
#D94FA7
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E2E87

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

Preview Lab → · Contrast checker → · Palette generator →

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