#4E2387#4E2387

#4E2387 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.6% C 0.156 H 298.0°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#4E2387
RGBrgb(78, 35, 135)
HSLhsl(266, 59%, 33%)
HSVhsv(266, 74%, 53%)
CMYKcmyk(42.2%, 74.1%, 0%, 47.1%)
CIE-LABlab(25.48, 41.39, -48.24)
CIE-LCHlch(25.48, 63.57, 310.63°)
OKLaboklab(37.6% 0.0734 -0.1379)
OKLCHoklch(37.6% 0.156 298)
XYZxyz(8.1150, 4.5709, 23.3717)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2387 #5C8723
analogous
#232A87 #4E2387 #802387
triadic
#4E2387 #874E23 #23874E
tetradic
#4E2387 #87232A #5C8723 #238780
square
#4E2387 #87232A #5C8723 #238780
split-complementary
#4E2387 #878023 #2A8723
monochromatic
#160A26 #321656 #4E2387 #6A30B8 #8952D2

Accessibility & contrast

On white

10.97
#4E2387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2387
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2387#FFFFFF#000000##FFFFFF
##4E23871.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003B85
Tritanopia (blue-blind)
#403C53
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4e2387;
/* rgb */ color: rgb(78, 35, 135);
/* oklch */ color: oklch(37.6% 0.156 298.0);
Tailwind
colors: {
  custom: {
    50: '#8562ab',
    500: '#4e2387',
    950: '#000000',
  },
}
SCSS
$custom: #4e2387;
$custom-light: #8562ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2387",
  "rgb": {
    "r": 78,
    "g": 35,
    "b": 135
  },
  "hsl": {
    "h": 265.8,
    "s": 58.824,
    "l": 33.333
  },
  "oklch": {
    "l": 0.376,
    "c": 0.1562,
    "h": 298
  },
  "luminance": 0.04571
}

Semantic roles & 50–950 ramp

primary
#4E2387
secondary
#8AB650
accent
#E2469F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4E2387

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

Preview Lab → · Contrast checker → · Palette generator →

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