#4E2487#4E2487

#4E2487 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.155 H 297.9°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#4E2487
RGBrgb(78, 36, 135)
HSLhsl(265, 58%, 34%)
HSVhsv(265, 73%, 53%)
CMYKcmyk(42.2%, 73.3%, 0%, 47.1%)
CIE-LABlab(25.66, 40.89, -47.95)
CIE-LCHlch(25.66, 63.01, 310.46°)
OKLaboklab(37.73% 0.0724 -0.137)
OKLCHoklch(37.73% 0.155 297.9)
XYZxyz(8.1448, 4.6306, 23.3816)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2487 #5D8724
analogous
#242B87 #4E2487 #7F2487
triadic
#4E2487 #874E24 #24874E
tetradic
#4E2487 #87242B #5D8724 #24877F
square
#4E2487 #87242B #5D8724 #24877F
split-complementary
#4E2487 #877F24 #2B8724
monochromatic
#160A26 #321757 #4E2487 #6A31B7 #8954D1

Accessibility & contrast

On white

10.90
#4E2487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4E2487 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2487
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2487#FFFFFF#000000##FFFFFF
##4E24871.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003C85
Tritanopia (blue-blind)
#403D53
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4e2487;
/* rgb */ color: rgb(78, 36, 135);
/* oklch */ color: oklch(37.7% 0.155 297.9);
Tailwind
colors: {
  custom: {
    50: '#8563ab',
    500: '#4e2487',
    950: '#000000',
  },
}
SCSS
$custom: #4e2487;
$custom-light: #8563ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2487",
  "rgb": {
    "r": 78,
    "g": 36,
    "b": 135
  },
  "hsl": {
    "h": 265.455,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37728,
    "c": 0.15497,
    "h": 297.9
  },
  "luminance": 0.04631
}

Semantic roles & 50–950 ramp

primary
#4E2487
secondary
#8BB551
accent
#E147A0
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4E2487

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

Preview Lab → · Contrast checker → · Palette generator →

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