#4E2386#4E2386

#4E2386 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.155 H 298.4°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#4E2386
RGBrgb(78, 35, 134)
HSLhsl(266, 59%, 33%)
HSVhsv(266, 74%, 53%)
CMYKcmyk(41.8%, 73.9%, 0%, 47.5%)
CIE-LABlab(25.39, 41.12, -47.75)
CIE-LCHlch(25.39, 63.02, 310.73°)
OKLaboklab(37.51% 0.0736 -0.1364)
OKLCHoklch(37.51% 0.155 298.4)
XYZxyz(8.0449, 4.5429, 23.0026)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2386 #5B8623
analogous
#232986 #4E2386 #7F2386
triadic
#4E2386 #864E23 #23864E
tetradic
#4E2386 #862329 #5B8623 #23867F
square
#4E2386 #862329 #5B8623 #23867F
split-complementary
#4E2386 #867F23 #298623
monochromatic
#160A25 #321655 #4E2386 #6A30B7 #8952D2

Accessibility & contrast

On white

11.00
#4E2386 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4E2386 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2386
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2386#FFFFFF#000000##FFFFFF
##4E23861.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C89
Deuteranopia (green-blind)
#003B84
Tritanopia (blue-blind)
#403C52
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4e2386;
/* rgb */ color: rgb(78, 35, 134);
/* oklch */ color: oklch(37.5% 0.155 298.4);
Tailwind
colors: {
  custom: {
    50: '#8562aa',
    500: '#4e2386',
    950: '#000000',
  },
}
SCSS
$custom: #4e2386;
$custom-light: #8562aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2386",
  "rgb": {
    "r": 78,
    "g": 35,
    "b": 134
  },
  "hsl": {
    "h": 266.061,
    "s": 58.58,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37513,
    "c": 0.15504,
    "h": 298.4
  },
  "luminance": 0.04543
}

Semantic roles & 50–950 ramp

primary
#4E2386
secondary
#89B54F
accent
#E2469E
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4E2386

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

Preview Lab → · Contrast checker → · Palette generator →

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