#4E2C87#4E2C87

#4E2C87 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.8% C 0.144 H 296.2°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#4E2C87
RGBrgb(78, 44, 135)
HSLhsl(262, 51%, 35%)
HSVhsv(262, 67%, 53%)
CMYKcmyk(42.2%, 67.4%, 0%, 47.1%)
CIE-LABlab(27.21, 36.58, -45.41)
CIE-LCHlch(27.21, 58.31, 308.85°)
OKLaboklab(38.84% 0.0637 -0.1296)
OKLCHoklch(38.84% 0.144 296.2)
XYZxyz(8.4146, 5.1702, 23.4716)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2C87 #65872C
analogous
#2C3787 #4E2C87 #7C2C87
triadic
#4E2C87 #874E2C #2C874E
tetradic
#4E2C87 #872C37 #65872C #2C877C
square
#4E2C87 #872C37 #65872C #2C877C
split-complementary
#4E2C87 #877C2C #37872C
monochromatic
#190E2B #331D59 #4E2C87 #693BB5 #8962CC

Accessibility & contrast

On white

10.32
#4E2C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4E2C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2C87
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2C87#FFFFFF#000000##FFFFFF
##4E2C871.0010.322.0310.32
#FFFFFF10.321.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418A
Deuteranopia (green-blind)
#003F85
Tritanopia (blue-blind)
#3F4155
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e2c87;
/* rgb */ color: rgb(78, 44, 135);
/* oklch */ color: oklch(38.8% 0.144 296.2);
Tailwind
colors: {
  custom: {
    50: '#8467ab',
    500: '#4e2c87',
    950: '#000000',
  },
}
SCSS
$custom: #4e2c87;
$custom-light: #8467ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2c87",
  "rgb": {
    "r": 78,
    "g": 44,
    "b": 135
  },
  "hsl": {
    "h": 262.418,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38843,
    "c": 0.14439,
    "h": 296.2
  },
  "luminance": 0.0517
}

Semantic roles & 50–950 ramp

primary
#4E2C87
secondary
#92B25D
accent
#DA4DA6
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E2C87

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

Preview Lab → · Contrast checker → · Palette generator →

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