#4E2887#4E2887

#4E2887 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.3% C 0.150 H 297.1°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#4E2887
RGBrgb(78, 40, 135)
HSLhsl(264, 54%, 34%)
HSVhsv(264, 70%, 53%)
CMYKcmyk(42.2%, 70.4%, 0%, 47.1%)
CIE-LABlab(26.41, 38.79, -46.72)
CIE-LCHlch(26.41, 60.72, 309.70°)
OKLaboklab(38.26% 0.0682 -0.1334)
OKLCHoklch(38.26% 0.15 297.1)
XYZxyz(8.2727, 4.8864, 23.4243)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2887 #618728
analogous
#283287 #4E2887 #7E2887
triadic
#4E2887 #874E28 #28874E
tetradic
#4E2887 #872832 #618728 #28877E
square
#4E2887 #872832 #618728 #28877E
split-complementary
#4E2887 #877E28 #328728
monochromatic
#170C29 #331A58 #4E2887 #6936B6 #895BCE

Accessibility & contrast

On white

10.62
#4E2887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4E2887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2887
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2887#FFFFFF#000000##FFFFFF
##4E28871.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#003D85
Tritanopia (blue-blind)
#403F54
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e2887;
/* rgb */ color: rgb(78, 40, 135);
/* oklch */ color: oklch(38.3% 0.150 297.1);
Tailwind
colors: {
  custom: {
    50: '#8565ab',
    500: '#4e2887',
    950: '#000000',
  },
}
SCSS
$custom: #4e2887;
$custom-light: #8565ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2887",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 264,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38264,
    "c": 0.14983,
    "h": 297.1
  },
  "luminance": 0.04887
}

Semantic roles & 50–950 ramp

primary
#4E2887
secondary
#8FB457
accent
#DE4AA3
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E2887

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

Preview Lab → · Contrast checker → · Palette generator →

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